public void ReturnsNamedConnectionString()
            {
                var context = new TestDbContextContainer();

                string expectedString = string.Format("{0};Application Name=EntityFrameworkMUE", TestConnectionStrings.DbContextDefault);

                var connectionString = context.GetConnectionString();

                Assert.IsTrue(string.Equals(expectedString, connectionString, StringComparison.OrdinalIgnoreCase));
            }
            public void ReturnsNamedConnectionString()
            {
                var context = new TestDbContextContainer();

                string expectedString = string.Format("{0};Application Name=EntityFrameworkMUE", TestConnectionStrings.DbContextDefault);

                var connectionString = context.GetConnectionString();

                Assert.AreEqual(expectedString, connectionString, true);
            }
            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);
            }
Exemplo n.º 5
0
            public void ReturnsNamedConnectionString()
            {
                var context = new TestDbContextContainer();

                string expectedString = string.Format("{0};Application Name=EntityFrameworkMUE", TestConnectionStrings.DbContextDefault);

                var connectionString = context.GetConnectionString();

                Assert.AreEqual(expectedString, connectionString, true);
            }
Exemplo n.º 6
0
            public void ReturnsRealConnectionString()
            {
                var context = new TestDbContextContainer();

                string expectedString = TestConnectionStrings.DbContextModified;

                context.SetConnectionString(TestConnectionStrings.DbContextModified);
                var connectionString = context.GetConnectionString();

                Assert.AreEqual(expectedString, connectionString, true);
            }
Exemplo n.º 7
0
            public void ReturnsNamedConnectionString()
            {
                var context = new TestDbContextContainer();

                string expectedString = string.Format("{0};Application Name=EntityFrameworkMUE", TestConnectionStrings.DbContextDefault);

                var connectionString = context.GetConnectionString();

                Assert.IsTrue(string.Equals(expectedString, connectionString, StringComparison.OrdinalIgnoreCase));
            }
Exemplo n.º 8
0
            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));
            }