Exemplo n.º 1
0
 public void CreateEventDBContext()
 {
     using (var db = new EventDBContext())
     {
         db.Database.EnsureCreated();
         Assert.AreNotEqual(db, null);
     }
 }
Exemplo n.º 2
0
 public void RemoveEventDBContext()
 {
     using (var db = new EventDBContext())
     {
         db.Database.EnsureCreated();
         var t = db.Database.EnsureDeleted();
         Assert.AreEqual(t, true);
     }
 }