Пример #1
0
 public PeriodJobServiceFacade(IJobService jobService,
                               IJobIndexService jobIndexService,
                               IFilterMapper <Job, JobInPeriodDTOWithActions> jobInPeriodDTOWithActionsMapper,
                               IFilterMapper <Job, JobInPeriodDTO> jobInPeriodDTOMapper,
                               IMapper <JobCustomField, CustomFieldDTO> jobCustomFieldMapper,
                               IMapper <AbstractJobIndex, AbstractIndexInPeriodDTO> jobIndexInPeriodMapper,
                               IJobRepository jobRep,
                               IJobPositionRepository jobPositionRep
                               )
 {
     this.jobService      = jobService;
     this.jobIndexService = jobIndexService;
     this.jobInPeriodDTOWithActionsMapper = jobInPeriodDTOWithActionsMapper;
     this.jobInPeriodDTOMapper            = jobInPeriodDTOMapper;
     this.jobCustomFieldMapper            = jobCustomFieldMapper;
     this.jobIndexInPeriodMapper          = jobIndexInPeriodMapper;
     this.jobRep         = jobRep;
     this.jobPositionRep = jobPositionRep;
 }
Пример #2
0
 public PeriodUnitServiceFacade(IUnitService unitService,
                                IMapper <Unit, UnitInPeriodAssignmentDTO> unitAssignmentMapper,
                                IFilterMapper <Unit, UnitInPeriodDTOWithActions> unitInPeriodDTOWithActionsMapper,
                                IFilterMapper <Unit, UnitInPeriodDTO> unitInPeriodDTOMapper,
                                IMapper <UnitCustomField, CustomFieldDTO> unitCustomFieldMapper,
                                IUnitRepository unitRep,
                                IUnitIndexService unitIndexService,
                                IEmployeeRepository employeeRepository,
                                IUnitIndexRepository unitIndexRepository)
 {
     this.unitService                      = unitService;
     this.unitAssignmentMapper             = unitAssignmentMapper;
     this.unitInPeriodDTOWithActionsMapper = unitInPeriodDTOWithActionsMapper;
     this.unitInPeriodDTOMapper            = unitInPeriodDTOMapper;
     this.unitRep = unitRep;
     this.unitCustomFieldMapper = unitCustomFieldMapper;
     this.unitIndexService      = unitIndexService;
     _employeeRepository        = employeeRepository;
     _unitIndexRepository       = unitIndexRepository;
 }
Пример #3
0
 public MobileService(IUsersRestApi usersRestApi,
                      ITeamsRestApi teamsRestApi,
                      IEccSetupRestApi eccSetupRestApi,
                      IWorkOrdersRestApi workOrdersRestApi,
                      IFilterMapper filterMapper,
                      IFilterBuildService filterBuildService,
                      IJsonService <object> jsonService,
                      ILocationBuildService locationBuildService,
                      IModelDtoConverter modelDtoConverter,
                      IMapper mapper)
 {
     _usersRestApi         = usersRestApi ?? throw new ArgumentNullException(nameof(usersRestApi));
     _teamsRestApi         = teamsRestApi ?? throw new ArgumentNullException(nameof(teamsRestApi));
     _eccSetupRestApi      = eccSetupRestApi ?? throw new ArgumentNullException(nameof(eccSetupRestApi));
     _workOrdersRestApi    = workOrdersRestApi ?? throw new ArgumentNullException(nameof(workOrdersRestApi));
     _filterMapper         = filterMapper ?? throw new ArgumentNullException(nameof(filterMapper));
     _filterBuildService   = filterBuildService ?? throw new ArgumentNullException(nameof(filterBuildService));
     _jsonService          = jsonService ?? throw new ArgumentNullException(nameof(jsonService));
     _locationBuildService = locationBuildService ?? throw new ArgumentNullException(nameof(locationBuildService));
     _modelDtoConverter    = modelDtoConverter ?? throw new ArgumentNullException(nameof(modelDtoConverter));
     _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }