public void Setup()
 {
     _continuation = new Continuation {Success = true};
     _validTask = ObjectMother.ValidTask("raif");
     _validTask.QuantityUsed = 5;
     _crudManager = MockRepository.GenerateMock<ICrudManager>();
     _crudManager.Expect(x => x.Finish()).Return(new Notification());
     _saveEntityService = MockRepository.GenerateMock<ISaveEntityService>();
     _sesCatcher = _saveEntityService.CaptureArgumentsFor(x => x.ProcessSave(_validTask.InventoryProduct, _crudManager), x => x.Return(_crudManager));
     _SUT = new InventoryService(null,_saveEntityService);
     _SUT.DecrementTaskProduct(_validTask, _crudManager);
 }
Beispiel #2
0
 public void Setup()
 {
     _continuation = new Continuation {
         Success = true
     };
     _validTask = ObjectMother.ValidTask("raif");
     _validTask.QuantityUsed = 5;
     _crudManager            = MockRepository.GenerateMock <ICrudManager>();
     _crudManager.Expect(x => x.Finish()).Return(new Notification());
     _saveEntityService = MockRepository.GenerateMock <ISaveEntityService>();
     _sesCatcher        = _saveEntityService.CaptureArgumentsFor(x => x.ProcessSave(_validTask.InventoryProduct, _crudManager), x => x.Return(_crudManager));
     _SUT = new InventoryService(null, _saveEntityService);
     _SUT.DecrementTaskProduct(_validTask, _crudManager);
 }