public AjaxController(IZipCodeService zipCodeService, IWorkflowMessageService workflowMessageService
                       , IServiceRequestService serviceRequestService)
 {
     this._zipCodeService         = zipCodeService;
     this._workflowMessageService = workflowMessageService;
     this._serviceRequestService  = serviceRequestService;
 }
 public AjaxController(IZipCodeService zipCodeService, IWorkflowMessageService workflowMessageService
     , IServiceRequestService serviceRequestService)
 {
     this._zipCodeService = zipCodeService;
     this._workflowMessageService = workflowMessageService;
     this._serviceRequestService = serviceRequestService;
 }
 public ServiceRequestController(IRepository <ServiceRequest> serviceRequestRepository,
                                 IRepository <Assignment> assignmentRepository,
                                 IRepository <AssignmentHistory> assignmentHistoryRepository,
                                 IRepository <WorkOrder> workOrderRepository,
                                 IServiceRequestService serviceRequestService,
                                 IAutoNumberService autoNumberService,
                                 IDateTimeHelper dateTimeHelper,
                                 ILocalizationService localizationService,
                                 IPermissionService permissionService,
                                 HttpContextBase httpContext,
                                 IWorkContext workContext,
                                 IDbContext dbContext)
 {
     this._serviceRequestRepository    = serviceRequestRepository;
     this._assignmentRepository        = assignmentRepository;
     this._assignmentHistoryRepository = assignmentHistoryRepository;
     this._workOrderRepository         = workOrderRepository;
     this._localizationService         = localizationService;
     this._serviceRequestService       = serviceRequestService;
     this._autoNumberService           = autoNumberService;
     this._dateTimeHelper    = dateTimeHelper;
     this._permissionService = permissionService;
     this._httpContext       = httpContext;
     this._workContext       = workContext;
     this._dbContext         = dbContext;
 }
        public void Init()
        {
            _uow = Substitute.For <IUnitOfWork2>();

            _usersDbSet = Substitute.For <DbSet <ApplicationUser>, IQueryable <ApplicationUser>, IDbAsyncEnumerable <ApplicationUser> >();
            _uow.GetDbSet <ApplicationUser>().Returns(_usersDbSet);

            _serviceRequestsDbSet = Substitute.For <DbSet <ServiceRequest>, IQueryable <ServiceRequest>, IDbAsyncEnumerable <ServiceRequest> >();
            _uow.GetDbSet <ServiceRequest>().Returns(_serviceRequestsDbSet);

            _serviceRequestCommentsDbSet = Substitute.For <DbSet <ServiceRequestComment>, IQueryable <ServiceRequestComment>, IDbAsyncEnumerable <ServiceRequestComment> >();
            _uow.GetDbSet <ServiceRequestComment>().Returns(_serviceRequestCommentsDbSet);

            _serviceRequestCategoryDbSet = Substitute.For <DbSet <ServiceRequestCategory>, IQueryable <ServiceRequestCategory>, IDbAsyncEnumerable <ServiceRequestCategory> >();
            _uow.GetDbSet <ServiceRequestCategory>().Returns(_serviceRequestCategoryDbSet);

            _serviceRequestPriorityDbSet = Substitute.For <DbSet <ServiceRequestPriority>, IQueryable <ServiceRequestPriority>, IDbAsyncEnumerable <ServiceRequestPriority> >();
            _uow.GetDbSet <ServiceRequestPriority>().Returns(_serviceRequestPriorityDbSet);

            _serviceRequestStatusDbSet = Substitute.For <DbSet <ServiceRequestStatus>, IQueryable <ServiceRequestStatus>, IDbAsyncEnumerable <ServiceRequestStatus> >();
            _uow.GetDbSet <ServiceRequestStatus>().Returns(_serviceRequestStatusDbSet);

            _permissionService = Substitute.For <IPermissionService>();
            var asyncRunner = Substitute.For <IAsyncRunner>();

            _serviceRequestService = new ServiceRequestService(_uow, _permissionService, asyncRunner);
        }
示例#5
0
 public LookupController(
     IRepository <Point> pointRepository,
     IRepository <MeterEvent> meterEventRepository,
     ISiteService siteService,
     ISecurityGroupService securityGroupService,
     IMeterService meterService,
     IUserService userService,
     IAttributeService attributeService,
     ITechnicianService technicianService,
     ITeamService teamService,
     IItemService itemService,
     IAssetService assetService,
     IWorkOrderService workOrderService,
     ILocationService locationService,
     IStoreService storeService,
     IServiceRequestService serviceRequestService,
     ICompanyService companyService)
 {
     this._pointRepository       = pointRepository;
     this._meterEventRepository  = meterEventRepository;
     this._siteService           = siteService;
     this._securityGroupService  = securityGroupService;
     this._meterService          = meterService;
     this._userService           = userService;
     this._attributeService      = attributeService;
     this._technicianService     = technicianService;
     this._teamService           = teamService;
     this._itemService           = itemService;
     this._assetService          = assetService;
     this._workOrderService      = workOrderService;
     this._locationService       = locationService;
     this._storeService          = storeService;
     this._serviceRequestService = serviceRequestService;
     this._companyService        = companyService;
 }
 /// <summary>
 /// Ctor
 /// </summary>
 public WorkOrderService(IRepository <WorkOrder> workOrderRepository,
                         IRepository <User> userRepository,
                         IRepository <Assignment> assignmentRepository,
                         IRepository <Attachment> attachmentRepository,
                         IRepository <Asset> assetRepository,
                         IRepository <TaskGroup> taskGroupRepository,
                         IServiceRequestService serviceRequestService,
                         IPreventiveMaintenanceService pmService,
                         ICalendarService calendarService,
                         IAutoNumberService autoNumberService,
                         IAttachmentService attachmentService,
                         DapperContext dapperContext,
                         IWorkContext workContext,
                         IDbContext dbContext,
                         IDateTimeHelper dateTimeHelper)
 {
     this._workOrderRepository   = workOrderRepository;
     this._userRepository        = userRepository;
     this._assignmentRepository  = assignmentRepository;
     this._attachmentRepository  = attachmentRepository;
     this._assetRepository       = assetRepository;
     this._taskGroupRepository   = taskGroupRepository;
     this._serviceRequestService = serviceRequestService;
     this._pmService             = pmService;
     this._calendarService       = calendarService;
     this._autoNumberService     = autoNumberService;
     this._attachmentService     = attachmentService;
     this._dapperContext         = dapperContext;
     this._workContext           = workContext;
     this._dbContext             = dbContext;
     this._dateTimeHelper        = dateTimeHelper;
 }
示例#7
0
 public VendorController(IVendorService vendorService,
                         IDropDownSubCategoryService subCategoryService,
                         IServiceRequestService requestService, ISystemSettingsService settingsService)
 {
     this.vendorService      = vendorService;
     this.subCategoryService = subCategoryService;
     this.requestService     = requestService;
     this.settingsService    = settingsService;
 }
 public ServiceRequestsController(
     ICustomerRepository customerRepository,
     IServiceRequestService serviceRequestService,
     IEmployeeRepository employeeRepository)
 {
     _customerRepository    = customerRepository;
     _serviceRequestService = serviceRequestService;
     _employeeRepository    = employeeRepository;
 }
 public ServiceRequestsController(IMapper mapper,
                                  IUnitOfWork unitOfWork,
                                  IKudosShopService kudosShopService,
                                  IPermissionService permissionService,
                                  IServiceRequestService serviceRequestService,
                                  IServiceRequestExportService serviceRequestExportService)
 {
     _categoryRepository          = unitOfWork.GetRepository <ServiceRequestCategory>();
     _priorityRepository          = unitOfWork.GetRepository <ServiceRequestPriority>();
     _statusRepository            = unitOfWork.GetRepository <ServiceRequestStatus>();
     _commentRepository           = unitOfWork.GetRepository <ServiceRequestComment>();
     _serviceRequestRepository    = unitOfWork.GetRepository <ServiceRequest>();
     _kudosShopService            = kudosShopService;
     _permissionService           = permissionService;
     _serviceRequestService       = serviceRequestService;
     _serviceRequestExportService = serviceRequestExportService;
     _uow    = unitOfWork;
     _mapper = mapper;
 }
示例#10
0
 public ServiceRequestReportController(IServiceRequestService _serviceRequestService) =>
 public ServiceRequestsController(IServiceRequestService services)
 {
     _services = services;
 }
示例#12
0
 public ServiceRequestsController(IServiceRequestService serviceRequestService) => this.serviceRequestService = serviceRequestService;
 public ContractorRequestProcessor(IServiceRequestService requestService, ISystemSettingsService settingsService)
 {
     this.requestService  = requestService;
     this.settingsService = settingsService;
 }
 public ServiceRequestController(IServiceRequestService requestRequest,
                                 IDropDownSubCategoryService subCategoryService)
 {
     this.requestService     = requestRequest;
     this.subCategoryService = subCategoryService;
 }
示例#15
0
 public ServiceRequestsController(IServiceRequestService serviceRequestService)
 {
     _serviceRequestService = serviceRequestService;
 }