public CallsService(ICallsRepository callsRepository, ICommunicationService communicationService, IGenericDataRepository <CallDispatch> callDispatchsRepository, ICallTypesRepository callTypesRepository, ICallEmailFactory callEmailFactory, ICacheProvider cacheProvider, IGenericDataRepository <CallNote> callNotesRepository, IGenericDataRepository <CallAttachment> callAttachmentRepository, IGenericDataRepository <CallDispatchGroup> callDispatchGroupRepository, IGenericDataRepository <CallDispatchUnit> callDispatchUnitRepository, IGenericDataRepository <CallDispatchRole> callDispatchRoleRepository, IGenericDataRepository <DepartmentCallPriority> departmentCallPriorityRepository, IShortenUrlProvider shortenUrlProvider) { _callsRepository = callsRepository; _communicationService = communicationService; _callDispatchsRepository = callDispatchsRepository; _callTypesRepository = callTypesRepository; _callEmailFactory = callEmailFactory; _cacheProvider = cacheProvider; _callNotesRepository = callNotesRepository; _callAttachmentRepository = callAttachmentRepository; _callDispatchGroupRepository = callDispatchGroupRepository; _callDispatchUnitRepository = callDispatchUnitRepository; _callDispatchRoleRepository = callDispatchRoleRepository; _departmentCallPriorityRepository = departmentCallPriorityRepository; _shortenUrlProvider = shortenUrlProvider; }
public CallsService(ICallsRepository callsRepository, ICommunicationService communicationService, ICallDispatchesRepository callDispatchesRepository, ICallTypesRepository callTypesRepository, ICallEmailFactory callEmailFactory, ICacheProvider cacheProvider, ICallNotesRepository callNotesRepository, ICallAttachmentRepository callAttachmentRepository, ICallDispatchGroupRepository callDispatchGroupRepository, ICallDispatchUnitRepository callDispatchUnitRepository, ICallDispatchRoleRepository callDispatchRoleRepository, IDepartmentCallPriorityRepository departmentCallPriorityRepository, IShortenUrlProvider shortenUrlProvider, ICallProtocolsRepository callProtocolsRepository) { _callsRepository = callsRepository; _communicationService = communicationService; _callDispatchesRepository = callDispatchesRepository; _callTypesRepository = callTypesRepository; _callEmailFactory = callEmailFactory; _cacheProvider = cacheProvider; _callNotesRepository = callNotesRepository; _callAttachmentRepository = callAttachmentRepository; _callDispatchGroupRepository = callDispatchGroupRepository; _callDispatchUnitRepository = callDispatchUnitRepository; _callDispatchRoleRepository = callDispatchRoleRepository; _departmentCallPriorityRepository = departmentCallPriorityRepository; _shortenUrlProvider = shortenUrlProvider; _callProtocolsRepository = callProtocolsRepository; }
protected with_the_calls_email_factory() { _callEmailFactory = new CallEmailFactory(); _dispatchUsers = new List <IdentityUser>(); _dispatchUsers.Add(new IdentityUser() { UserId = Guid.NewGuid().ToString() }); _dispatchUsers.Add(new IdentityUser() { UserId = Guid.NewGuid().ToString() }); _dispatchUsers.Add(new IdentityUser() { UserId = Guid.NewGuid().ToString() }); _activeCalls = new List <Call>(); _activeCalls.Add(new Call() { CallId = 1, Name = "Test Call 1", }); _activeCalls.Add(new Call() { CallId = 2, Name = "72C01 - Water Rescue/ Sinking Vehicle/Vehicle in Floodwater", LoggedOn = new DateTime(2018, 5, 14, 15, 53, 16, DateTimeKind.Utc), DispatchCount = 1, ReportingUserId = "bef090f5-3c18-4a52-9c56-45e597d1c91b", SourceIdentifier = "102", CallSource = (int)CallSources.EmailImport, GeoLocationData = "54.1425, -115.687" }); _activeCalls.Add(new Call() { CallId = 3, Name = "Test Call 3", }); _department = new Department(); _department.Name = "Test Department 1"; _department.TimeZone = "Eastern Standard Time"; _dispatchedUnits = new List <Unit>(); _dispatchedUnits.Add(new Unit() { UnitId = 1, Name = "Test Unit 1", DepartmentId = 1, Department = _department }); _dispatchedUnits.Add(new Unit() { UnitId = 2, Name = "Test Unit 2", DepartmentId = 1, Department = _department }); }