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