Integration Test using the MembershipProvider

Creating tests is a very important part of the development cycle, one of the import part of creating tests is to make sure the tests have as little dependencies as possible, this is where Intergration testing comes in to play.

One area to Integration test is the Membership Provider and Role Provider, this is quite simple as the interfaces ofr both providers are very well defined.

I have attached two Integration test Providers, one for the Membership and the other for Roles, So as to keep Visual Basic alive I’ve written this source in VB.NET

IntegrationTest MembershipProvider.vb (6.24 kb)

IntegrationTestRoleProvider.vb (4.36 kb)

Of course the next step would be to Mock these objects