protected virtual void Dispose(bool disposing) { if (disposing) { db?.Dispose(); } }
protected override void DisposeCore() { if (schoolContext != null) { schoolContext.Dispose(); } }
protected override void Dispose(bool disposing) { if (disposing) { db.Dispose(); } base.Dispose(disposing); }
protected virtual void Dispose(bool disposing) { if (!this.disposed) { if (disposing) { context.Dispose(); } } this.disposed = true; }
public void Dispose() { _schoolDbContextSut?.Dispose(); }
public void Dispose() => _db.Dispose();
public void Dispose() { _testController.Dispose(); _dbContext.Database.CloseConnection(); _dbContext.Dispose(); }
public void Dispose() { _context.Dispose(); }
public void Dispose() { _db?.Dispose(); _connection?.Dispose(); }