Exemplo n.º 1
0
 protected override void TearDown()
 {
     using (var dataContext = new PerformanceTestContext())
     {
         using (var transaction = dataContext.Database.BeginTransaction())
         {
             foreach (var s in dataContext.Simplests)
                 dataContext.Simplests.Remove(s);
             dataContext.SaveChanges();
             transaction.Commit();
         }
     }
 }
Exemplo n.º 2
0
 protected override void OpenSession()
 {
     _context = new PerformanceTestContext();
 }