Mocking Membership provider

So as usual with so many of .NET 1.0 to .NET 2.0 era classes, Microsoft have made it near impossible to mock out MembershipProvider. The MembershipProvidersCollection class is read-only so you can’t just add your own provider at runtime. No matter! After some time with Reflector and some twiddling with reflection I came up with […]

Okay, this took me far too long to figure this out. Mainly due to my own misunderstanding of Python terminology regarding modules (For the record, a ‘module’ is a file not a directory of python files) and mainly because I couldn’t find a specific example for what I wanted to achieve. My goal was this: […]