Пример #1
0
 public DispatchController(
     IUsersService usersService,
     IActionLogsService actionLogsService,
     IDepartmentsService departmentsService,
     IUserProfileService userProfileService,
     IUserStateService userStateService,
     IUnitsService unitsService,
     ICallsService callsService,
     IDepartmentGroupsService departmentGroupsService,
     IPersonnelRolesService personnelRolesService,
     ICustomStateService customStateService,
     IGeoLocationProvider geoLocationProvider,
     ICqrsProvider cqrsProvider,
     IDepartmentSettingsService departmentSettingsService,
     ITemplatesService templatesService
     )
 {
     _usersService              = usersService;
     _actionLogsService         = actionLogsService;
     _departmentsService        = departmentsService;
     _userProfileService        = userProfileService;
     _userStateService          = userStateService;
     _unitsService              = unitsService;
     _callsService              = callsService;
     _departmentGroupsService   = departmentGroupsService;
     _personnelRolesService     = personnelRolesService;
     _customStateService        = customStateService;
     _geoLocationProvider       = geoLocationProvider;
     _cqrsProvider              = cqrsProvider;
     _departmentSettingsService = departmentSettingsService;
     _templatesService          = templatesService;
 }
Пример #2
0
 public HomeController(IDepartmentsService departmentsService, IUsersService usersService, IActionLogsService actionLogsService,
                       IUserStateService userStateService, IDepartmentGroupsService departmentGroupsService, Resgrid.Model.Services.IAuthorizationService authorizationService,
                       IUserProfileService userProfileService, ICallsService callsService, IGeoLocationProvider geoLocationProvider, IDepartmentSettingsService departmentSettingsService,
                       IUnitsService unitsService, IAddressService addressService, IPersonnelRolesService personnelRolesService, IPushService pushService, ILimitsService limitsService,
                       ICustomStateService customStateService, IEventAggregator eventAggregator, IOptions <AppOptions> appOptionsAccessor, UserManager <IdentityUser> userManager)
 {
     _departmentsService        = departmentsService;
     _usersService              = usersService;
     _actionLogsService         = actionLogsService;
     _userStateService          = userStateService;
     _departmentGroupsService   = departmentGroupsService;
     _authorizationService      = authorizationService;
     _userProfileService        = userProfileService;
     _callsService              = callsService;
     _geoLocationProvider       = geoLocationProvider;
     _departmentSettingsService = departmentSettingsService;
     _unitsService              = unitsService;
     _addressService            = addressService;
     _personnelRolesService     = personnelRolesService;
     _pushService        = pushService;
     _limitsService      = limitsService;
     _customStateService = customStateService;
     _eventAggregator    = eventAggregator;
     _appOptionsAccessor = appOptionsAccessor;
     _userManager        = userManager;
 }
Пример #3
0
 public StatusScheduleLogic()
 {
     _userStateService      = Bootstrapper.GetKernel().Resolve <IUserStateService>();
     _scheduledTasksService = Bootstrapper.GetKernel().Resolve <IScheduledTasksService>();
     _departmentsService    = Bootstrapper.GetKernel().Resolve <IDepartmentsService>();
     _actionLogsService     = Bootstrapper.GetKernel().Resolve <IActionLogsService>();
 }
Пример #4
0
 public UnitAppController(
     IUsersService usersService,
     IActionLogsService actionLogsService,
     IDepartmentsService departmentsService,
     IUserProfileService userProfileService,
     IWebEventPublisher webEventPublisher,
     IUserStateService userStateService,
     IUnitsService unitsService,
     ICallsService callsService,
     IDepartmentGroupsService departmentGroupsService,
     IPersonnelRolesService personnelRolesService,
     ICustomStateService customStateService,
     IGeoLocationProvider geoLocationProvider,
     ICqrsProvider cqrsProvider
     )
 {
     _usersService            = usersService;
     _actionLogsService       = actionLogsService;
     _departmentsService      = departmentsService;
     _userProfileService      = userProfileService;
     _webEventPublisher       = webEventPublisher;
     _userStateService        = userStateService;
     _unitsService            = unitsService;
     _callsService            = callsService;
     _departmentGroupsService = departmentGroupsService;
     _personnelRolesService   = personnelRolesService;
     _customStateService      = customStateService;
     _geoLocationProvider     = geoLocationProvider;
     _cqrsProvider            = cqrsProvider;
 }
Пример #5
0
 public CallsController(
     ICallsService callsService,
     IDepartmentsService departmentsService,
     IUserProfileService userProfileService,
     IGeoLocationProvider geoLocationProvider,
     IAuthorizationService authorizationService,
     IQueueService queueService,
     IUsersService usersService,
     IUnitsService unitsService,
     IActionLogsService actionLogsService,
     IDepartmentGroupsService departmentGroupsService,
     IPersonnelRolesService personnelRolesService
     )
 {
     _callsService            = callsService;
     _departmentsService      = departmentsService;
     _userProfileService      = userProfileService;
     _geoLocationProvider     = geoLocationProvider;
     _authorizationService    = authorizationService;
     _queueService            = queueService;
     _usersService            = usersService;
     _unitsService            = unitsService;
     _actionLogsService       = actionLogsService;
     _departmentGroupsService = departmentGroupsService;
     _personnelRolesService   = personnelRolesService;
 }
Пример #6
0
 public EmailController(IDepartmentSettingsService departmentSettingsService, INumbersService numbersService,
                        ILimitsService limitsService, ICallsService callsService, IQueueService queueService, IDepartmentsService departmentsService,
                        IUserProfileService userProfileService, ITextCommandService textCommandService, IActionLogsService actionLogsService,
                        IUserStateService userStateService, ICommunicationService communicationService, IDistributionListsService distributionListsService,
                        IUsersService usersService, IEmailService emailService, IDepartmentGroupsService departmentGroupsService, IMessageService messageService,
                        IFileService fileService, IUnitsService unitsService)
 {
     _departmentSettingsService = departmentSettingsService;
     _numbersService            = numbersService;
     _limitsService             = limitsService;
     _callsService             = callsService;
     _queueService             = queueService;
     _departmentsService       = departmentsService;
     _userProfileService       = userProfileService;
     _textCommandService       = textCommandService;
     _actionLogsService        = actionLogsService;
     _userStateService         = userStateService;
     _communicationService     = communicationService;
     _distributionListsService = distributionListsService;
     _usersService             = usersService;
     _emailService             = emailService;
     _departmentGroupsService  = departmentGroupsService;
     _messageService           = messageService;
     _fileService  = fileService;
     _unitsService = unitsService;
 }
Пример #7
0
 public BigBoardController(
     IUsersService usersService,
     IActionLogsService actionLogsService,
     IDepartmentsService departmentsService,
     IUserProfileService userProfileService,
     IUserStateService userStateService,
     IUnitsService unitsService,
     ICallsService callsService,
     IDepartmentGroupsService departmentGroupsService,
     IPersonnelRolesService personnelRolesService,
     ICustomStateService customStateService,
     IDepartmentSettingsService departmentSettingsService,
     IGeoLocationProvider geoLocationProvider
     )
 {
     _usersService              = usersService;
     _actionLogsService         = actionLogsService;
     _departmentsService        = departmentsService;
     _userProfileService        = userProfileService;
     _userStateService          = userStateService;
     _unitsService              = unitsService;
     _callsService              = callsService;
     _departmentGroupsService   = departmentGroupsService;
     _personnelRolesService     = personnelRolesService;
     _customStateService        = customStateService;
     _departmentSettingsService = departmentSettingsService;
     _geoLocationProvider       = geoLocationProvider;
 }
Пример #8
0
 public AccountController(IDepartmentsService departmentsService, IUsersService usersService, IActionLogsService actionLogsService,
                          IEmailService emailService, IUserProfileService userProfileService, IDeleteService deleteService, IAuthorizationService authorizationService,
                          ILimitsService limitsService, IPersonnelRolesService personnelRolesService)
 {
     _departmentsService    = departmentsService;
     _usersService          = usersService;
     _actionLogsService     = actionLogsService;
     _emailService          = emailService;
     _userProfileService    = userProfileService;
     _deleteService         = deleteService;
     _authorizationService  = authorizationService;
     _limitsService         = limitsService;
     _personnelRolesService = personnelRolesService;
 }
Пример #9
0
 /// <summary>
 /// Operations to perform against the department links system. Department Links allow departments to
 /// share data to other departments, for example calls or resource orders.
 /// </summary>
 public LinksController(IDepartmentsService departmentsService, IDepartmentLinksService departmentLinksService, ILimitsService limitsService,
                        ICallsService callsService, IUserProfileService userProfileService, IGeoLocationProvider geoLocationProvider, IUnitsService unitsService,
                        IActionLogsService actionLogsService, IUserStateService userStateService)
 {
     _departmentsService     = departmentsService;
     _departmentLinksService = departmentLinksService;
     _limitsService          = limitsService;
     _callsService           = callsService;
     _userProfileService     = userProfileService;
     _geoLocationProvider    = geoLocationProvider;
     _unitsService           = unitsService;
     _actionLogsService      = actionLogsService;
     _userStateService       = userStateService;
 }
Пример #10
0
 public LinksController(IDepartmentLinksService departmentLinksService, IDepartmentsService departmentsService, IEmailService emailService,
                        ICallsService callsService, IUnitsService unitsService, IActionLogsService actionLogsService, IDepartmentGroupsService departmentGroupsService,
                        IUserStateService userStateService, IPersonnelRolesService personnelRolesService, ILimitsService limitsService)
 {
     _departmentLinksService  = departmentLinksService;
     _departmentsService      = departmentsService;
     _emailService            = emailService;
     _callsService            = callsService;
     _unitsService            = unitsService;
     _actionLogsService       = actionLogsService;
     _departmentGroupsService = departmentGroupsService;
     _userStateService        = userStateService;
     _personnelRolesService   = personnelRolesService;
     _limitsService           = limitsService;
 }
Пример #11
0
 public TextMessagesController(IDepartmentSettingsService departmentSettingsService, INumbersService numbersService,
                               ILimitsService limitsService, ICallsService callsService, IQueueService queueService, IDepartmentsService departmentsService,
                               IUserProfileService userProfileService, ITextCommandService textCommandService, IActionLogsService actionLogsService,
                               IUserStateService userStateService, ICommunicationService communicationService)
 {
     _departmentSettingsService = departmentSettingsService;
     _numbersService            = numbersService;
     _limitsService             = limitsService;
     _callsService         = callsService;
     _queueService         = queueService;
     _departmentsService   = departmentsService;
     _userProfileService   = userProfileService;
     _textCommandService   = textCommandService;
     _actionLogsService    = actionLogsService;
     _userStateService     = userStateService;
     _communicationService = communicationService;
 }
Пример #12
0
 public UnitStateController(
     IUsersService usersService,
     IActionLogsService actionLogsService,
     IDepartmentsService departmentsService,
     IUserProfileService userProfileService,
     IUserStateService userStateService,
     IUnitsService unitsService,
     IEventAggregator eventAggregator
     )
 {
     _usersService       = usersService;
     _actionLogsService  = actionLogsService;
     _departmentsService = departmentsService;
     _userProfileService = userProfileService;
     _userStateService   = userStateService;
     _unitsService       = unitsService;
     _eventAggregator    = eventAggregator;
 }
Пример #13
0
 public UnitsController(
     IUsersService usersService,
     IActionLogsService actionLogsService,
     IDepartmentsService departmentsService,
     IUserProfileService userProfileService,
     IUserStateService userStateService,
     IUnitsService unitsService,
     IDepartmentGroupsService departmentGroupsService
     )
 {
     _usersService            = usersService;
     _actionLogsService       = actionLogsService;
     _departmentsService      = departmentsService;
     _userProfileService      = userProfileService;
     _userStateService        = userStateService;
     _unitsService            = unitsService;
     _departmentGroupsService = departmentGroupsService;
 }
Пример #14
0
 public MappingController(IDepartmentSettingsService departmentSettingsService,
                          IGeoLocationProvider geoLocationProvider, ICallsService callsService,
                          IDepartmentsService departmentsService, IDepartmentGroupsService departmentGroupsService,
                          IActionLogsService actionLogsService, IUnitsService unitsService, IMappingService mappingService,
                          IKmlProvider kmlProvider, IPermissionsService permissionsService, IPersonnelRolesService personnelRolesService)
 {
     _departmentSettingsService = departmentSettingsService;
     _geoLocationProvider       = geoLocationProvider;
     _callsService            = callsService;
     _departmentsService      = departmentsService;
     _departmentGroupsService = departmentGroupsService;
     _actionLogsService       = actionLogsService;
     _unitsService            = unitsService;
     _mappingService          = mappingService;
     _kmlProvider             = kmlProvider;
     _permissionsService      = permissionsService;
     _personnelRolesService   = personnelRolesService;
 }
Пример #15
0
 public UnitStateController(
     IUsersService usersService,
     IActionLogsService actionLogsService,
     IDepartmentsService departmentsService,
     IUserProfileService userProfileService,
     IWebEventPublisher webEventPublisher,
     IUserStateService userStateService,
     IUnitsService unitsService
     )
 {
     _usersService       = usersService;
     _actionLogsService  = actionLogsService;
     _departmentsService = departmentsService;
     _userProfileService = userProfileService;
     _webEventPublisher  = webEventPublisher;
     _userStateService   = userStateService;
     _unitsService       = unitsService;
 }
Пример #16
0
 public PersonnelController(
     IUsersService usersService,
     IActionLogsService actionLogsService,
     IDepartmentsService departmentsService,
     IUserProfileService userProfileService,
     IUserStateService userStateService,
     IDepartmentGroupsService departmentGroupsService,
     IPersonnelRolesService personnelRolesService,
     IDepartmentSettingsService departmentSettingsService
     )
 {
     _usersService              = usersService;
     _actionLogsService         = actionLogsService;
     _departmentsService        = departmentsService;
     _userProfileService        = userProfileService;
     _userStateService          = userStateService;
     _departmentGroupsService   = departmentGroupsService;
     _personnelRolesService     = personnelRolesService;
     _departmentSettingsService = departmentSettingsService;
 }
Пример #17
0
 public PersonnelController(
     IUsersService usersService,
     IActionLogsService actionLogsService,
     IDepartmentsService departmentsService,
     IUserProfileService userProfileService,
     IWebEventPublisher webEventPublisher,
     IUserStateService userStateService,
     IDepartmentGroupsService departmentGroupsService,
     IPersonnelRolesService personnelRolesService
     )
 {
     _usersService            = usersService;
     _actionLogsService       = actionLogsService;
     _departmentsService      = departmentsService;
     _userProfileService      = userProfileService;
     _webEventPublisher       = webEventPublisher;
     _userStateService        = userStateService;
     _departmentGroupsService = departmentGroupsService;
     _personnelRolesService   = personnelRolesService;
 }
Пример #18
0
 public NotificationService(IDepartmentNotificationRepository departmentNotificationRepository, IDepartmentsService departmentsService,
                            IUnitsService unitsService, IUserStateService userStateService, IDepartmentGroupsService departmentGroupsService, IActionLogsService actionLogsService,
                            IPersonnelRolesService personnelRolesService, IUserProfileService userProfileService, ICalendarService calendarService, IDocumentsService documentsService,
                            INotesService notesService, IWorkLogsService workLogsService, IShiftsService shiftsService, ICustomStateService customStateService)
 {
     _departmentNotificationRepository = departmentNotificationRepository;
     _departmentsService      = departmentsService;
     _unitsService            = unitsService;
     _userStateService        = userStateService;
     _departmentGroupsService = departmentGroupsService;
     _actionLogsService       = actionLogsService;
     _personnelRolesService   = personnelRolesService;
     _userProfileService      = userProfileService;
     _calendarService         = calendarService;
     _documentsService        = documentsService;
     _notesService            = notesService;
     _workLogsService         = workLogsService;
     _shiftsService           = shiftsService;
     _customStateService      = customStateService;
 }
Пример #19
0
 public StatusController(
     IUsersService usersService,
     IActionLogsService actionLogsService,
     IDepartmentsService departmentsService,
     IUserProfileService userProfileService,
     IDepartmentGroupsService departmentGroupsService,
     IUserStateService userStateService,
     IAuthorizationService authorizationService,
     IOutboundEventProvider outboundEventProvider,
     IEventAggregator eventAggregator)
 {
     _usersService            = usersService;
     _actionLogsService       = actionLogsService;
     _departmentsService      = departmentsService;
     _userProfileService      = userProfileService;
     _userStateService        = userStateService;
     _departmentGroupsService = departmentGroupsService;
     _authorizationService    = authorizationService;
     _outboundEventProvider   = outboundEventProvider;
     _eventAggregator         = eventAggregator;
 }
Пример #20
0
 public StatusController(
     IUsersService usersService,
     IActionLogsService actionLogsService,
     IDepartmentsService departmentsService,
     IUserProfileService userProfileService,
     IDepartmentGroupsService departmentGroupsService,
     IUserStateService userStateService,
     IWebEventPublisher webEventPublisher,
     IAuthorizationService authorizationService,
     IOutboundEventProvider outboundEventProvider)
 {
     _usersService            = usersService;
     _actionLogsService       = actionLogsService;
     _departmentsService      = departmentsService;
     _userProfileService      = userProfileService;
     _webEventPublisher       = webEventPublisher;
     _userStateService        = userStateService;
     _departmentGroupsService = departmentGroupsService;
     _authorizationService    = authorizationService;
     _outboundEventProvider   = outboundEventProvider;
 }
Пример #21
0
 public TwilioProviderController(IDepartmentSettingsService departmentSettingsService, INumbersService numbersService,
                                 ILimitsService limitsService, ICallsService callsService, IQueueService queueService, IDepartmentsService departmentsService,
                                 IUserProfileService userProfileService, ITextCommandService textCommandService, IActionLogsService actionLogsService,
                                 IUserStateService userStateService, ICommunicationService communicationService, IGeoLocationProvider geoLocationProvider,
                                 IDepartmentGroupsService departmentGroupsService, ICustomStateService customStateService, IUnitsService unitsService)
 {
     _departmentSettingsService = departmentSettingsService;
     _numbersService            = numbersService;
     _limitsService             = limitsService;
     _callsService            = callsService;
     _queueService            = queueService;
     _departmentsService      = departmentsService;
     _userProfileService      = userProfileService;
     _textCommandService      = textCommandService;
     _actionLogsService       = actionLogsService;
     _userStateService        = userStateService;
     _communicationService    = communicationService;
     _geoLocationProvider     = geoLocationProvider;
     _departmentGroupsService = departmentGroupsService;
     _customStateService      = customStateService;
     _unitsService            = unitsService;
 }
Пример #22
0
            protected with_the_actionLogs_service()
            {
                _actionLogsRepositoryMock        = new Mock <IActionLogsRepository>();
                _departmentMembersRepositoryMock = new Mock <IDepartmentMembersRepository>();
                _usersServiceMock              = new Mock <IUsersService>();
                _departmentGroupsServiceMock   = new Mock <IDepartmentGroupsService>();
                _departmentsServiceMock        = new Mock <IDepartmentsService>();
                _departmentSettingsServiceMock = new Mock <IDepartmentSettingsService>();
                _eventAggregatorMock           = new Mock <IEventAggregator>();
                _geoServiceMock         = new Mock <IGeoService>();
                _customStateServiceMock = new Mock <ICustomStateService>();
                _cacheProviderMock      = new Mock <ICacheProvider>();

                DepartmentMembershipHelpers.SetupDisabledAndHiddenUsers(_departmentsServiceMock);
                _actionLogsRepositoryMock.Setup(m => m.GetAllAsync()).ReturnsAsync(ActionLogsHelpers.CreateActionLogsForDepartment4());
                _departmentMembersRepositoryMock.Setup(m => m.GetAllAsync()).ReturnsAsync(DepartmentMembershipHelpers.CreateDepartmentMembershipsForDepartment4());
                _departmentsServiceMock.Setup(m => m.GetAllMembersForDepartmentAsync(4)).ReturnsAsync(DepartmentMembershipHelpers.CreateDepartmentMembershipsForDepartment4().ToList());
                _usersServiceMock.Setup(m => m.GetUserById(It.IsAny <string>(), true)).Returns((string v) => UsersHelpers.CreateUser(v));

                _actionLogsService       = Resolve <IActionLogsService>();
                _actionLogsServiceMocked = new ActionLogsService(_actionLogsRepositoryMock.Object, _usersServiceMock.Object, _departmentMembersRepositoryMock.Object, _departmentGroupsServiceMock.Object, _departmentsServiceMock.Object, _departmentSettingsServiceMock.Object, _eventAggregatorMock.Object, _geoServiceMock.Object, _customStateServiceMock.Object, _cacheProviderMock.Object);
            }
Пример #23
0
 public DeleteService(IAuthorizationService authorizationService, IDepartmentsService departmentsService,
                      ICallsService callsService, IActionLogsService actionLogsService, IUsersService usersService,
                      IUserProfileService userProfileService, IMessageService messageService, IDepartmentGroupsService departmentGroupsService,
                      IWorkLogsService workLogsService, IUserStateService userStateService, IPersonnelRolesService personnelRolesService, IDistributionListsService distributionListsService,
                      IShiftsService shiftsService, IUnitsService unitsService, ICertificationService certificationService, ILogService logService)
 {
     _authorizationService     = authorizationService;
     _departmentsService       = departmentsService;
     _callsService             = callsService;
     _actionLogsService        = actionLogsService;
     _usersService             = usersService;
     _userProfileService       = userProfileService;
     _messageService           = messageService;
     _departmentGroupsService  = departmentGroupsService;
     _workLogsService          = workLogsService;
     _userStateService         = userStateService;
     _personnelRolesService    = personnelRolesService;
     _distributionListsService = distributionListsService;
     _shiftsService            = shiftsService;
     _unitsService             = unitsService;
     _certificationService     = certificationService;
     _logService = logService;
 }