protected virtual void Cleanup() { if (_batchStartedHere) { _batchUpdatable.EndUpdate(); } _batchUpdatable = null; }
protected override void Context() { _batchUpdatable = A.Fake <IBatchUpdatable>(); }
public BatchUpdate(IBatchUpdatable batchUpdatable) { _batchUpdatable = batchUpdatable; _batchStartedHere = !batchUpdatable.Updating; _batchUpdatable.BeginUpdate(); }