protected virtual void Dispose(bool disposing) { if (disposing) { scope.DbContexts.Get <TDbContext>().ChangeTracker.DetectChanges(); scope.SaveChanges(); scope.Dispose(); } }
protected virtual void Dispose(bool disposing) { if (_disposed) { return; } if (disposing) { _dbContextScope.Dispose(); } _disposed = true; }
public void DisposeTestScope() { testScope?.Dispose(); testScope = null; }
public void DisposeFixtureScope() { fixtureScope?.Dispose(); fixtureScope = null; }