public PhotoCategoryController(IDynamicExpressionQuery dynamicExpressionQuery, IRepository repository, ISaveEntityService saveEntityService, IPhotoCategoryListGrid listTypeListGrid) : base(dynamicExpressionQuery, repository, saveEntityService, (IListTypeListGrid <PhotoCategory>)listTypeListGrid) { }
public PurchaseOrderCommitController(IRepository repository, ISaveEntityService saveEntityService, IReceivePurchaseOrderLineItemGrid receivePurchaseOrderLineItemGrid) { _repository = repository; _saveEntityService = saveEntityService; _receivePurchaseOrderLineItemGrid = receivePurchaseOrderLineItemGrid; }
protected override void beforeEach() { Given = new TaskViewModel { Product = "3_Chemicals", Task = ObjectMother.ValidTask("raif"), }; _field = ObjectMother.ValidField("raif"); _equipment1 = ObjectMother.ValidEquipment("raif").WithEntityId(6); _equipment2 = ObjectMother.ValidEquipment("poop").WithEntityId(7); _equipment3 = ObjectMother.ValidEquipment("crap").WithEntityId(8); repo = MockFor <IRepository>(); repo.Stub(x => x.Find <Field>(1)).Return(_field); _validInventoryChemical = ObjectMother.ValidInventoryProductChemical("lsd").WithEntityId(3); repo.Stub(x => x.Find <InventoryProduct>(3)).Return(_validInventoryChemical); _employee1 = ObjectMother.ValidEmployee("raif"); _employee2 = ObjectMother.ValidEmployee("Amahl"); _employee3 = ObjectMother.ValidEmployee("Ramsay"); repo.Stub(x => x.Find <Employee>(1)).Return(_employee1); repo.Stub(x => x.Find <Employee>(2)).Return(_employee2); repo.Stub(x => x.Find <Employee>(3)).Return(_employee3); repo.Stub(x => x.Find <Equipment>(6)).Return(_equipment1); repo.Stub(x => x.Find <Equipment>(7)).Return(_equipment2); repo.Stub(x => x.Find <Equipment>(8)).Return(_equipment3); _crudManager = MockRepository.GenerateMock <ICrudManager>(); _crudManager.Expect(x => x.Finish()).Return(new Notification()); _saveEntityService = MockFor <ISaveEntityService>(); _sesCatcher = _saveEntityService.CaptureArgumentsFor(x => x.ProcessSave(new Task(), null), x => x.Return(_crudManager)); }
public TaskTypeController(IDynamicExpressionQuery dynamicExpressionQuery, IRepository repository, ISaveEntityService saveEntityService, ITaskTypeListGrid listTypeListGrid) : base(dynamicExpressionQuery, repository, saveEntityService, (IListTypeListGrid <TaskType>)listTypeListGrid) { }
public PurchaseOrderCommitController(IRepository repository, ISaveEntityService saveEntityService, IReceivePurchaseOrderLineItemGrid receivePurchaseOrderLineItemGrid ) { _repository = repository; _saveEntityService = saveEntityService; _receivePurchaseOrderLineItemGrid = receivePurchaseOrderLineItemGrid; }
public VendorController(IRepository repository, ISaveEntityService saveEntityService, ISelectBoxPickerService selectBoxPickerService) { _repository = repository; _saveEntityService = saveEntityService; _selectBoxPickerService = selectBoxPickerService; }
public EventController(IRepository repository, ISaveEntityService saveEntityService, ISelectListItemService selectListItemService) { _repository = repository; _saveEntityService = saveEntityService; _selectListItemService = selectListItemService; }
public EquipmentController(IRepository repository, ISaveEntityService saveEntityService, IUploadedFileHandlerService uploadedFileHandlerService, IHttpContextAbstractor httpContextAbstractor) { _repository = repository; _saveEntityService = saveEntityService; _uploadedFileHandlerService = uploadedFileHandlerService; _httpContextAbstractor = httpContextAbstractor; }
public ListTypeBaseController(IDynamicExpressionQuery dynamicExpressionQuery, IRepository repository, ISaveEntityService saveEntityService, IListTypeListGrid <LISTTYPE> listTypeListGrid) { _dynamicExpressionQuery = dynamicExpressionQuery; _repository = repository; _saveEntityService = saveEntityService; _listTypeListGrid = listTypeListGrid; }
public FieldController(IRepository repository, ISaveEntityService saveEntityService, IUploadedFileHandlerService uploadedFileHandlerService, IHttpContextAbstractor httpContextAbstractor) { _repository = repository; _saveEntityService = saveEntityService; _uploadedFileHandlerService = uploadedFileHandlerService; _httpContextAbstractor = httpContextAbstractor; }
public EmailJobController(IRepository repository, ISaveEntityService saveEntityService, ISelectBoxPickerService selectBoxPickerService, ISelectListItemService selectListItemService) { _repository = repository; _saveEntityService = saveEntityService; _selectBoxPickerService = selectBoxPickerService; _selectListItemService = selectListItemService; }
public TaskController(IRepository repository, ISaveEntityService saveEntityService, ISelectListItemService selectListItemService, ISelectBoxPickerService selectBoxPickerService, IInventoryService inventoryService) { _repository = repository; _saveEntityService = saveEntityService; _selectListItemService = selectListItemService; _selectBoxPickerService = selectBoxPickerService; _inventoryService = inventoryService; }
public EmployeeController(IRepository repository, ISaveEntityService saveEntityService, IUploadedFileHandlerService uploadedFileHandlerService, ISelectBoxPickerService selectBoxPickerService, IHttpContextAbstractor httpContextAbstractor) { _repository = repository; _saveEntityService = saveEntityService; _uploadedFileHandlerService = uploadedFileHandlerService; _selectBoxPickerService = selectBoxPickerService; _httpContextAbstractor = httpContextAbstractor; }
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); }
public DocumentController(IRepository repository, ISaveEntityService saveEntityService, ISelectListItemService selectListItemService, IUploadedFileHandlerService uploadedFileHandlerService, IHttpContextAbstractor httpContextAbstractor) { _repository = repository; _saveEntityService = saveEntityService; _selectListItemService = selectListItemService; _uploadedFileHandlerService = uploadedFileHandlerService; _httpContextAbstractor = httpContextAbstractor; }
public UserController( IRepository repository, ISaveEntityService saveEntityService, ISecurityDataService securityDataService, ISelectListItemService selectListItemService, IAuthorizationRepository authorizationRepository) { _repository = repository; _saveEntityService = saveEntityService; _securityDataService = securityDataService; _selectListItemService = selectListItemService; _authorizationRepository = authorizationRepository; }
public PurchaseOrderController(IRepository repository, ISaveEntityService saveEntityService, ISelectListItemService selectListItemService, IDynamicExpressionQuery dynamicExpressionQuery, IPurchaseOrderSelectorGrid purchaseOrderSelectorGrid, IPurchaseOrderLineItemGrid purchaseOrderLineItemGrid, ISessionContext sessionContext ) { _repository = repository; _saveEntityService = saveEntityService; _selectListItemService = selectListItemService; _dynamicExpressionQuery = dynamicExpressionQuery; _purchaseOrderSelectorGrid = purchaseOrderSelectorGrid; _purchaseOrderLineItemGrid = purchaseOrderLineItemGrid; _sessionContext = sessionContext; }
public LoginController(ISecurityDataService securityDataService, IAuthenticationContext authenticationContext, IEmailTemplateService emailTemplateService, IContainer container, IRepository repository, ISaveEntityService saveEntityService) { _securityDataService = securityDataService; _authenticationContext = authenticationContext; _emailTemplateService = emailTemplateService; _container = container; _repository = repository; _saveEntityService = saveEntityService; }
public UserProfileController(IRepository repository, ISessionContext sessionContext, ISecurityDataService securityDataService, ISaveEntityService saveEntityService, IUpdateCollectionService updateCollectionService, ISelectListItemService selectListItemService) { _repository = repository; _sessionContext = sessionContext; _securityDataService = securityDataService; _saveEntityService = saveEntityService; _updateCollectionService = updateCollectionService; _selectListItemService = selectListItemService; }
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); }
public void Setup() { _poliId = 0; _repo = MockRepository.GenerateMock <IRepository>(); _purchaseOrderLineItem = ObjectMother.ValidPurchaseOrderLineItem("raif"); _inventoryBaseProducts = new List <InventoryProduct>().AsQueryable(); _purchaseOrderLineItem.TotalReceived = 4; _repo.Expect(x => x.Query <InventoryProduct>(null)).IgnoreArguments().Return(_inventoryBaseProducts); _crudManager = MockRepository.GenerateMock <ICrudManager>(); _crudManager.Expect(x => x.Finish()).Return(new Notification()); _saveEntityService = MockRepository.GenerateMock <ISaveEntityService>(); _sesCatcher = _saveEntityService.CaptureArgumentsFor(x => x.ProcessSave(_inventoryBaseProducts.FirstOrDefault(), null), x => x.Return(_crudManager)); _SUT = new InventoryService(_repo, _saveEntityService); _crudManager = _SUT.ReceivePurchaseOrderLineItem(_purchaseOrderLineItem); }
public void Setup() { _poliId = 0; _repo = MockRepository.GenerateMock<IRepository>(); _purchaseOrderLineItem = ObjectMother.ValidPurchaseOrderLineItem("raif"); _inventoryBaseProducts = new List<InventoryProduct> { ObjectMother.ValidInventoryBaseProduct("raif")}.AsQueryable(); _purchaseOrderLineItem.TotalReceived = 4; _repo.Expect(x => x.Query<InventoryProduct>(null)).IgnoreArguments().Return(_inventoryBaseProducts); _saveEntityService = MockRepository.GenerateMock<ISaveEntityService>(); _crudManager = MockRepository.GenerateMock<ICrudManager>(); _crudManager.Expect(x => x.Finish()).Return(new Notification()); _sesCatcher = _saveEntityService.CaptureArgumentsFor(x=>x.ProcessSave(_inventoryBaseProducts.FirstOrDefault(),null),x=>x.Return(_crudManager)); _SUT = new InventoryService(_repo, _saveEntityService); _crudManager = _SUT.ReceivePurchaseOrderLineItem(_purchaseOrderLineItem); }
public SeedController(IRepository repository, ISaveEntityService saveEntityService) { _repository = repository; _saveEntityService = saveEntityService; }
public EventCalendarController(IRepository repository,ISaveEntityService saveEntityService) { _repository = repository; _saveEntityService = saveEntityService; }
public EmailTemplateController(IRepository repository, ISaveEntityService saveEntityService) { _repository = repository; _saveEntityService = saveEntityService; }
public VendorContactController(IRepository repository, ISaveEntityService saveEntityService) { _repository = repository; _saveEntityService = saveEntityService; }
public EventCalendarController(IRepository repository, ISaveEntityService saveEntityService) { _repository = repository; _saveEntityService = saveEntityService; }
public PurchaseOrderLineItemController(IRepository repository, ISaveEntityService saveEntityService, IInventoryService inventoryService) { _repository = repository; _saveEntityService = saveEntityService; _inventoryService = inventoryService; }
public InventoryService(IRepository repository, ISaveEntityService saveEntityService) { _repository = repository; _saveEntityService = saveEntityService; }
public MaterialController(IRepository repository, ISaveEntityService saveEntityService) { _repository = repository; _saveEntityService = saveEntityService; }
public FertilizerController(IRepository repository, ISaveEntityService saveEntityService) { _repository = repository; _saveEntityService = saveEntityService; }
public VendorContactController(IRepository repository,ISaveEntityService saveEntityService) { _repository = repository; _saveEntityService = saveEntityService; }