public void SetsConnectionString() { var dbContext = new TestDbContextContainer(); dbContext.SetConnectionString(TestConnectionStrings.DbContextModified); Assert.AreEqual(TestConnectionStrings.DbContextModified, dbContext.Database.Connection.ConnectionString); }
public void ReturnsRealConnectionString() { var context = new TestDbContextContainer(); string expectedString = TestConnectionStrings.DbContextModified; context.SetConnectionString(TestConnectionStrings.DbContextModified); var connectionString = context.GetConnectionString(); Assert.IsTrue(string.Equals(expectedString, connectionString, StringComparison.OrdinalIgnoreCase)); }
public void ReturnsRealConnectionString() { var context = new TestDbContextContainer(); string expectedString = TestConnectionStrings.DbContextModified; context.SetConnectionString(TestConnectionStrings.DbContextModified); var connectionString = context.GetConnectionString(); Assert.AreEqual(expectedString, connectionString, true); }