public void CheckThatRoleProviderFactoryCreatesValidDBRoleProviderInstance() { dbRolesProvider = null; Assert.IsNull(dbRolesProvider); dbRolesProvider = (DbRolesProvider)RolesFactory.GetRolesProvider("DbRolesProviderName"); Assert.IsNotNull(dbRolesProvider); Assert.AreEqual("Microsoft.Practices.EnterpriseLibrary.Security.Database.DbRolesProvider", dbRolesProvider.ToString()); }
public void Teardown() { dbRolesProvider = null; }
public void Setup() { dbRolesProvider = (DbRolesProvider)RolesFactory.GetRolesProvider("DbRolesProviderName"); }
public void CheckThatRoleProviderFactoryDoesNotReturnInvalidDBRoleProviderInstance() { DbRolesProvider tmpDbRolesProvider = (DbRolesProvider)RolesFactory.GetRolesProvider("NonConfiguredDbRolesProviderName"); Assert.Fail(); }