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());
        }
Esempio n. 2
0
 public void Teardown()
 {
     dbRolesProvider = null;
 }
Esempio n. 3
0
 public void Setup()
 {
     dbRolesProvider = (DbRolesProvider)RolesFactory.GetRolesProvider("DbRolesProviderName");
 }
Esempio n. 4
0
        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 CheckThatRoleProviderFactoryDoesNotReturnInvalidDBRoleProviderInstance()
        {
            DbRolesProvider tmpDbRolesProvider = (DbRolesProvider)RolesFactory.GetRolesProvider("NonConfiguredDbRolesProviderName");

            Assert.Fail();
        }
 public void Teardown()
 {
     dbRolesProvider = null;
 }
 public void Setup()
 {
     dbRolesProvider = (DbRolesProvider)RolesFactory.GetRolesProvider("DbRolesProviderName");
 }