There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
Add a constructor in the controllers to receive a MembershipProvider / RoleProvider
If the controllers have an additional constructor to receive the membership provider or role provider instead of using always the singleton instance, the code will be much easier to test with TDD (The membership provider can be mocked).
private MembershipProvider _provider;
_provider = dotNetMembership.Provider;
_provider = provider;