protected override void Dispose(bool disposing) { if (disposing) { db.Dispose(); } base.Dispose(disposing); }
public void Dispose() { if (_context != null) { _context.Dispose(); } if (_spellsContext != null) { _spellsContext.Dispose(); } if (_itemsContext != null) { _itemsContext.Dispose(); } if (_playableClassContext != null) { _playableClassContext.Dispose(); } if (_raceContext != null) { _raceContext.Dispose(); } }
public void Teardown() { _db.Dispose(); File.Delete(_dbFileName); }