Exemplo n.º 1
0
        protected virtual void Cleanup()
        {
            if (_batchStartedHere)
            {
                _batchUpdatable.EndUpdate();
            }

            _batchUpdatable = null;
        }
Exemplo n.º 2
0
 protected override void Context()
 {
     _batchUpdatable = A.Fake <IBatchUpdatable>();
 }
Exemplo n.º 3
0
 public BatchUpdate(IBatchUpdatable batchUpdatable)
 {
     _batchUpdatable   = batchUpdatable;
     _batchStartedHere = !batchUpdatable.Updating;
     _batchUpdatable.BeginUpdate();
 }