public void CheckThatProviderFactoryCreatesConfiguredInstance() { dbAuthProvider = (DbAuthenticationProvider)AuthenticationFactory.GetAuthenticationProvider("DbAuthenticationProviderName"); Assert.IsNotNull(dbAuthProvider); Assert.AreEqual("Microsoft.Practices.EnterpriseLibrary.Security.Database.Authentication.DbAuthenticationProvider", dbAuthProvider.ToString()); }
public void SetUp() { TestDataSetup.CreateTestData(Context); dbAuthProvider = (DbAuthenticationProvider)AuthenticationFactory.GetAuthenticationProvider("DbAuthenticationProviderName"); password = ASCIIEncoding.ASCII.GetBytes("Password"); username = "******"; }
public void TearDown() { TestDataSetup.DeleteTestData(Context); dbAuthProvider = null; }