protected override void Dispose(bool disposing) { if (disposing) { db.Dispose(); } base.Dispose(disposing); }
/// <summary> /// Called at end of each test - Clears database and disposes of context instance /// </summary> public void Dispose() { _context.Database.EnsureDeleted(); _context.Dispose(); }