Exemplo n.º 1
0
        public void OnBeforeEachTest()
        {
            DbConnection.Init("ConnectionString");

            using (var db = new DbConnection())
            {
                db.DropCreateTableAsync<Person>().Wait();
            }
        }
Exemplo n.º 2
0
        public async Task ShouldDropCreateATable()
        {
            using (var db = new DbConnection())
            {
                await db.DropTableAsync<Table>();

                await db.CreateTableAsync<Table>();

                await db.DropCreateTableAsync<Table>();
            }
        }