示例#1
0
        public void entity_framework_context_from_business_layer_returns_on_testdb()
        {
            TestDatabaseEnsurer tester   = new TestDatabaseEnsurer();
            BaseDBAccess        dbAccess = new BaseDBAccess();

            Assert.That(tester.IsConnStringPointingToTestDB(dbAccess.Database.Database.Connection.ConnectionString), Is.True);
            Assert.That(tester.IsOnTestDB(), Is.True);
        }
        public void base_setup()
        {
            TestDatabaseEnsurer insurance = new TestDatabaseEnsurer();

            Assert.That(insurance.IsOnTestDB(), Is.True);

            DatabaseReset reset = new DatabaseReset();

            reset.Reset();
        }