Exemple #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();
         }
     }
 }
Exemple #2
0
 protected override void OpenSession()
 {
     _context = new PerformanceTestContext();
 }