Esempio n. 1
0
        public void Test_Create_Complex_Database()
        {
            var db = new MemoryDatabase();

            db.Setup();

            //CreateComplexDatabaseSchema(db);

            CreateComplexDatabaseTables(db);
        }
        public void TestMethod1()
        {
            var db = new MemoryDatabase();

            db.Setup();

            CreateTables(db.OpenDbConnection());
            Assert.IsTrue(Test(db.OpenDbConnection()));
            Assert.IsTrue(TestCount <Employee>(db.OpenDbConnection(), 0));
            //Assert.IsTrue(TestCount<Customer>(db.OpenDbConnection(), 0));
        }
        public void TestMethod1()
        {
            var db = new MemoryDatabase();

            db.Setup();

            //TestCount(db, 0);
            CreateTablesFirst(db);
            CreateTables(db);
            TestCount(db, 0);
            CreateTablesFirst(db);

            //db.Close();
            //TestCount(db, 0);
        }
Esempio n. 4
0
        public void Test_Create_Simple_Database()
        {
            var db = new MemoryDatabase();

            db.Setup();

            //TestCount(db, 0);
            CreateTablesFirst(db);
            CreateTables(db);
            TestCount(db, 0);
            CreateTablesFirst(db);
            db.GetDbConnection().Close();
            TestCount(db, 0);

            //db.Close();
            //TestCount(db, 0);
        }