示例#1
0
 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;
 }
示例#3
0
 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));
 }
示例#4
0
 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;
 }
示例#6
0
 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;
 }
示例#8
0
 public EventController(IRepository repository,
     ISaveEntityService saveEntityService,
     ISelectListItemService selectListItemService)
 {
     _repository = repository;
     _saveEntityService = saveEntityService;
     _selectListItemService = selectListItemService;
 }
 public VendorController(IRepository repository,
                         ISaveEntityService saveEntityService,
                         ISelectBoxPickerService selectBoxPickerService)
 {
     _repository             = repository;
     _saveEntityService      = saveEntityService;
     _selectBoxPickerService = selectBoxPickerService;
 }
 public EquipmentController(IRepository repository,
                            ISaveEntityService saveEntityService,
                            IUploadedFileHandlerService uploadedFileHandlerService,
                            IHttpContextAbstractor httpContextAbstractor)
 {
     _repository                 = repository;
     _saveEntityService          = saveEntityService;
     _uploadedFileHandlerService = uploadedFileHandlerService;
     _httpContextAbstractor      = httpContextAbstractor;
 }
示例#11
0
 public ListTypeBaseController(IDynamicExpressionQuery dynamicExpressionQuery,
                               IRepository repository,
                               ISaveEntityService saveEntityService,
                               IListTypeListGrid <LISTTYPE> listTypeListGrid)
 {
     _dynamicExpressionQuery = dynamicExpressionQuery;
     _repository             = repository;
     _saveEntityService      = saveEntityService;
     _listTypeListGrid       = listTypeListGrid;
 }
示例#12
0
 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;
 }
示例#14
0
 public TaskController(IRepository repository,
     ISaveEntityService saveEntityService,
     ISelectListItemService selectListItemService,
     ISelectBoxPickerService selectBoxPickerService,
     IInventoryService inventoryService)
 {
     _repository = repository;
     _saveEntityService = saveEntityService;
     _selectListItemService = selectListItemService;
     _selectBoxPickerService = selectBoxPickerService;
     _inventoryService = inventoryService;
 }
示例#15
0
 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);
 }
示例#17
0
 public DocumentController(IRepository repository,
     ISaveEntityService saveEntityService,
     ISelectListItemService selectListItemService,
     IUploadedFileHandlerService uploadedFileHandlerService,
     IHttpContextAbstractor httpContextAbstractor)
 {
     _repository = repository;
     _saveEntityService = saveEntityService;
     _selectListItemService = selectListItemService;
     _uploadedFileHandlerService = uploadedFileHandlerService;
     _httpContextAbstractor = httpContextAbstractor;
 }
示例#18
0
 public EmployeeController(IRepository repository,
     ISaveEntityService saveEntityService,
     IUploadedFileHandlerService uploadedFileHandlerService,
     ISelectBoxPickerService selectBoxPickerService,
     IHttpContextAbstractor httpContextAbstractor)
 {
     _repository = repository;
     _saveEntityService = saveEntityService;
     _uploadedFileHandlerService = uploadedFileHandlerService;
     _selectBoxPickerService = selectBoxPickerService;
     _httpContextAbstractor = httpContextAbstractor;
 }
示例#19
0
 public DocumentController(IRepository repository,
                           ISaveEntityService saveEntityService,
                           ISelectListItemService selectListItemService,
                           IUploadedFileHandlerService uploadedFileHandlerService,
                           IHttpContextAbstractor httpContextAbstractor)
 {
     _repository                 = repository;
     _saveEntityService          = saveEntityService;
     _selectListItemService      = selectListItemService;
     _uploadedFileHandlerService = uploadedFileHandlerService;
     _httpContextAbstractor      = httpContextAbstractor;
 }
示例#20
0
 public TaskController(IRepository repository,
                       ISaveEntityService saveEntityService,
                       ISelectListItemService selectListItemService,
                       ISelectBoxPickerService selectBoxPickerService,
                       IInventoryService inventoryService)
 {
     _repository             = repository;
     _saveEntityService      = saveEntityService;
     _selectListItemService  = selectListItemService;
     _selectBoxPickerService = selectBoxPickerService;
     _inventoryService       = inventoryService;
 }
 public UserController(
     IRepository repository,
     ISaveEntityService saveEntityService,
     ISecurityDataService securityDataService,
     ISelectListItemService selectListItemService,
     IAuthorizationRepository authorizationRepository)
 {
     _repository = repository;
     _saveEntityService = saveEntityService;
     _securityDataService = securityDataService;
     _selectListItemService = selectListItemService;
     _authorizationRepository = authorizationRepository;
 }
示例#22
0
 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;
 }
示例#23
0
 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;
 }
示例#25
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);
 }
示例#26
0
 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);
 }
示例#28
0
 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 EmailTemplateController(IRepository repository,
     ISaveEntityService saveEntityService)
 {
     _repository = repository;
     _saveEntityService = saveEntityService;
 }
示例#35
0
 public InventoryService(IRepository repository, ISaveEntityService saveEntityService)
 {
     _repository        = repository;
     _saveEntityService = saveEntityService;
 }
示例#36
0
 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;
 }