public void Setup() { _validEmployee1 = ObjectMother.ValidEmployee("emp1").WithEntityId(1); _validEmployee2 = ObjectMother.ValidEmployee("emp2").WithEntityId(2); _validEmployee3 = ObjectMother.ValidEmployee("emp3").WithEntityId(3); _validEmployee4 = ObjectMother.ValidEmployee("emp4").WithEntityId(4); _selectedEmployees = new [] { _validEmployee3, _validEmployee4 }; _selectListItemService = MockRepository.GenerateMock <ISelectListItemService>(); _availableSelectListItems = new[] { _selectListItem1, _selectListItem2, new SelectListItem { Text = "emp3", Value = "3" }, new SelectListItem { Text = "emp4", Value = "4" } }; _selectedSelectListItems = new[] { new SelectListItem { Text = "emp3", Value = "3" }, new SelectListItem { Text = "emp4", Value = "4" } }; _selectListItemService.Expect(x => x.CreateList <Employee>(null, null, false, true)).IgnoreArguments().Return(_availableSelectListItems); _selectListItemService.Expect(x => x.CreateList(_selectedEmployees, null, null, false)).IgnoreArguments().Return(_selectedSelectListItems); _selectBoxPickerService = new SelectBoxPickerService(_selectListItemService, null); _result = _selectBoxPickerService.GetPickerDto(_selectedEmployees, x => x.FullName, x => x.EntityId); }
public EventController(IRepository repository, ISaveEntityService saveEntityService, ISelectListItemService selectListItemService) { _repository = repository; _saveEntityService = saveEntityService; _selectListItemService = selectListItemService; }
public EmailJobController(IRepository repository, ISaveEntityService saveEntityService, ISelectBoxPickerService selectBoxPickerService, ISelectListItemService selectListItemService) { _repository = repository; _saveEntityService = saveEntityService; _selectBoxPickerService = selectBoxPickerService; _selectListItemService = selectListItemService; }
public FileUploadController(IPackageTypeRepository packageTypeRepository, IOssReportService ossReportService, ISelectListItemService selectListItemService, ICoordinatePartsFactory coordinatePartsFactory, IJsonConvertService jsonConvertService, IApiCallerService apiCallerService) { _packageTypeRepository = packageTypeRepository; _ossReportService = ossReportService; _selectListItemService = selectListItemService; _coordinatePartsFactory = coordinatePartsFactory; _jsonConvertService = jsonConvertService; _apiCallerService = apiCallerService; }
public TaskController(IRepository repository, ISaveEntityService saveEntityService, ISelectListItemService selectListItemService, ISelectBoxPickerService selectBoxPickerService, IInventoryService inventoryService) { _repository = repository; _saveEntityService = saveEntityService; _selectListItemService = selectListItemService; _selectBoxPickerService = selectBoxPickerService; _inventoryService = inventoryService; }
public DocumentController(IRepository repository, ISaveEntityService saveEntityService, ISelectListItemService selectListItemService, IUploadedFileHandlerService uploadedFileHandlerService, IHttpContextAbstractor httpContextAbstractor) { _repository = repository; _saveEntityService = saveEntityService; _selectListItemService = selectListItemService; _uploadedFileHandlerService = uploadedFileHandlerService; _httpContextAbstractor = httpContextAbstractor; }
public PermissionController(IRepository repository, IPermissionsService permissionsService, IAuthorizationRepository authorizationRepository, IPermissionsBuilderService permissionsBuilderService, ISelectListItemService selectListItemService) { _repository = repository; _permissionsService = permissionsService; _authorizationRepository = authorizationRepository; _permissionsBuilderService = permissionsBuilderService; _selectListItemService = selectListItemService; }
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 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() { _validEmployee1 = ObjectMother.ValidEmployee("emp1").WithEntityId(1); _validEmployee2 = ObjectMother.ValidEmployee("emp2").WithEntityId(2); _validEmployee3 = ObjectMother.ValidEmployee("emp3").WithEntityId(3); _validEmployee4 = ObjectMother.ValidEmployee("emp4").WithEntityId(4); _selectedEmployees = new []{_validEmployee3,_validEmployee4}; _selectListItemService = MockRepository.GenerateMock<ISelectListItemService>(); _availableSelectListItems = new[] { _selectListItem1, _selectListItem2, new SelectListItem {Text = "emp3", Value = "3"}, new SelectListItem {Text = "emp4", Value = "4"} }; _selectedSelectListItems = new[] { new SelectListItem {Text = "emp3", Value = "3"}, new SelectListItem {Text = "emp4", Value = "4"} }; _selectListItemService.Expect(x => x.CreateList<Employee>(null, null, false,true)).IgnoreArguments().Return(_availableSelectListItems); _selectListItemService.Expect(x => x.CreateList(_selectedEmployees, null, null, false)).IgnoreArguments().Return(_selectedSelectListItems); _selectBoxPickerService = new SelectBoxPickerService(_selectListItemService, null); _result = _selectBoxPickerService.GetPickerDto(_selectedEmployees,x=>x.FullName,x=>x.EntityId); }
public OverseedBagsNeededCalculator(IRepository repository, IUnitSizeTimesQuantyCalculator unitSizeTimesQuantyCalculator, ISelectListItemService selectListItemService) { _repository = repository; _unitSizeTimesQuantyCalculator = unitSizeTimesQuantyCalculator; _selectListItemService = selectListItemService; }
public MaterialsCalculator(IRepository repository, ISelectListItemService selectListItemService) { _repository = repository; _selectListItemService = selectListItemService; }
public SiteConfigurationController(ISelectListItemService selectListItemService) { _selectListItemService = selectListItemService; _suiteWebsiteFullPath = SiteConfig.Settings().SuiteSiteFullPath ?? ""; _configFilePath = getConfigFilePath(); }
public SelectBoxPickerService(ISelectListItemService selectListItemService, IRepository repository) { _selectListItemService = selectListItemService; _repository = repository; }