Example #1
0
 protected virtual void Dispose(bool disposing)
 {
     if (!disposed)
     {
         if (disposing)
         {
             dbContext.Dispose();
         }
     }
     disposed = true;
 }
Example #2
0
 protected override void Dispose(bool disposing)
 {
     _northwindDbContext?.Dispose();
     base.Dispose(disposing);
 }
Example #3
0
 public void NorthwindTestCleanup()
 {
     _context.Dispose();
 }