Ejemplo n.º 1
0
 public async Task CanInitializeADatabase()
 {
     using (var cn = GetConnection())
     {
         var init = new DbInitialiser(cn, this.GetType().Assembly);
         await init.InitialiseDatabase();
     }
     using (var cn = GetConnection())
     {
         var init   = new DbInitialiser(cn, this.GetType().Assembly);
         var tables = init.GetTableNames();
         Assert.IsTrue(tables.Contains("Person"));
         Assert.IsTrue(tables.Contains("Stuff"));
     }
 }