public void OnBeforeEachTest() { DbConnection.Init("ConnectionString"); using (var db = new DbConnection()) { db.DropCreateTableAsync<Person>().Wait(); } }
public async Task ShouldDropCreateATable() { using (var db = new DbConnection()) { await db.DropTableAsync<Table>(); await db.CreateTableAsync<Table>(); await db.DropCreateTableAsync<Table>(); } }