public EstablishmentsSearchController(IEstablishmentReadService establishmentReadService, IEstablishmentDownloadService establishmentDownloadService, ICachedLookupService lookupService) { _establishmentReadService = establishmentReadService; _establishmentDownloadService = establishmentDownloadService; _lookupService = lookupService; }
public ChangeHistoryController(IChangeHistoryService svc, ICachedLookupService lookupService, IEstablishmentReadService establishmentReadService, IGroupReadService groupReadService, IGroupDownloadService groupDownloadService) { _svc = svc; _lookupService = lookupService; _establishmentReadService = establishmentReadService; _groupReadService = groupReadService; _groupDownloadService = groupDownloadService; }
public AmalgamateMergeController(IEstablishmentReadService establishmentReadService, IEstablishmentWriteService establishmentWriteService, ICachedLookupService lookupService) { _establishmentReadService = establishmentReadService; _establishmentWriteService = establishmentWriteService; _lookupService = lookupService; }
public AcademyOpeningsApiController(IEstablishmentReadService establishmentReadService, IEstablishmentWriteService establishmentWriteService, ICachedLookupService lookupService) { _establishmentReadService = establishmentReadService; _lookupService = lookupService; _establishmentWriteService = establishmentWriteService; }
public BulkCreateAcademiesApiController(IEstablishmentReadService establishmentReadService, IEstablishmentWriteService establishmentWriteService, ICachedLookupService lookupService) { _establishmentReadService = establishmentReadService; _lookupService = lookupService; _establishmentWriteService = establishmentWriteService; }
public ToolsController(ISecurityService securityService, IEstablishmentReadService establishmentReadService, ICachedLookupService lookup, IClientStorage clientStorage, ILocalAuthoritySetRepository localAuthoritySetRepository, IEstablishmentDownloadService establishmentDownloadService) { _securityService = securityService; _establishmentReadService = establishmentReadService; _lookup = lookup; _clientStorage = clientStorage; _localAuthoritySetRepository = localAuthoritySetRepository; _establishmentDownloadService = establishmentDownloadService; }
public GroupSearchController( IGroupReadService groupReadService, IGroupDownloadService groupDownloadService, ICachedLookupService lookupService) { _groupReadService = groupReadService; _lookupService = lookupService; _groupDownloadService = groupDownloadService; }
public EstablishmentsSearchController(IEstablishmentReadService establishmentReadService, IEstablishmentDownloadService establishmentDownloadService, ICachedLookupService lookupService, IUserPreferenceRepository userPreferenceRepository) { _establishmentReadService = establishmentReadService; _establishmentDownloadService = establishmentDownloadService; _lookupService = lookupService; _userPreferenceRepository = userPreferenceRepository; }
public SitemapController(IEstablishmentReadService establishmentReadService, IGroupReadService groupReadService, ICacheAccessor cacheAccessor, ICachedLookupService lookupService) { _establishmentReadService = establishmentReadService; _groupReadService = groupReadService; _cacheAccessor = cacheAccessor; _lookupService = lookupService; }
public SearchController(IEstablishmentReadService establishmentReadService, ICachedLookupService cachedLookupService, IGroupReadService groupReadService, IPlacesLookupService placesService) { _placesService = placesService; _cachedLookupService = cachedLookupService; _establishmentReadService = establishmentReadService; _groupReadService = groupReadService; }
public LayoutHelper( NomenclatureService nomenclatureService, IGroupReadService groupReadService, IEstablishmentReadService establishmentReadService, ICachedLookupService cls) { _nomenclatureService = nomenclatureService; _establishmentReadService = establishmentReadService; _groupReadService = groupReadService; _cls = cls; }
public SharedGovernorController( ICachedLookupService cachedLookupService, IGovernorsReadService governorsReadService, IGovernorsWriteService governorsWriteService, LayoutHelper layoutHelper) { _cachedLookupService = cachedLookupService; _governorsReadService = governorsReadService; _governorsWriteService = governorsWriteService; _layoutHelper = layoutHelper; }
public GovernorSearchController(IGovernorDownloadService governorDownloadService, IGovernorsReadService governorsReadService, ICachedLookupService cachedLookupService, IGroupReadService groupReadService, IEstablishmentReadService establishmentReadService) { _governorDownloadService = governorDownloadService; _governorsReadService = governorsReadService; _cachedLookupService = cachedLookupService; _establishmentReadService = establishmentReadService; _groupReadService = groupReadService; }
public EfficiencyShiftProvider( IDataCacheProvider <EfficiencyTimesheetCache> timesheetCacheProvider, IEmployeeService employeeService, ISiteContextProvider siteContextProvider, ICacheRepositoryFactory <ITransactionCacheRepository> transactionCacheRepositoryFactory, ICachedLookupService cachedLookupService) { _employeeService = employeeService; _timesheetCacheProvider = timesheetCacheProvider; _siteContextProvider = siteContextProvider; _transactionCacheRepositoryFactory = transactionCacheRepositoryFactory; _cachedLookupService = cachedLookupService; }
public GroupController( ICachedLookupService cachedLookupService, ISecurityService securityService, IGroupReadService groupReadService, IEstablishmentReadService establishmentReadService, IGroupsWriteService groupWriteService, ICompaniesHouseService companiesHouseService, NomenclatureService nomenclatureService) { _lookup = cachedLookupService; _securityService = securityService; _groupReadService = groupReadService; _establishmentReadService = establishmentReadService; _groupWriteService = groupWriteService; _companiesHouseService = companiesHouseService; _nomenclatureService = nomenclatureService; }
public GovernorController( IGovernorsReadService governorsReadService, NomenclatureService nomenclatureService, ICachedLookupService cachedLookupService, IGovernorsWriteService governorsWriteService, IGroupReadService groupReadService, IEstablishmentReadService establishmentReadService, ILayoutHelper layoutHelper) { _governorsReadService = governorsReadService; _nomenclatureService = nomenclatureService; _cachedLookupService = cachedLookupService; _governorsWriteService = governorsWriteService; _groupReadService = groupReadService; _establishmentReadService = establishmentReadService; _layoutHelper = layoutHelper; }
public GroupReadApiService(HttpClientWrapper httpClient, ICachedLookupService cachedLookupService) { _httpClient = httpClient; _cachedLookupService = cachedLookupService; }
public async Task <string> GetAltAddressAsync(ICachedLookupService lookup) => StringUtil.ConcatNonEmpties(", ", AltStreet, AltLocality, AltAddress3, AltTown, await lookup.GetNameAsync("CountyId", AltCountyId), AltPostCode);
public CountriesService(ICachedLookupService cachedLookupService, string urlBase) { _cachedLookupService = cachedLookupService; _urlBase = urlBase; }
public EstablishmentApiController(IEstablishmentReadService establishmentReadService, ICachedLookupService lookupService) { _establishmentReadService = establishmentReadService; _lookupService = lookupService; }
public static async Task <SharedGovernorViewModel> MapFromGovernor(GovernorModel governor, int establishmentUrn, ICachedLookupService cachedLookupService) { var dateNow = DateTime.Now.Date; var appointment = governor.Appointments?.SingleOrDefault(g => g.EstablishmentUrn == establishmentUrn); var sharedWith = governor.Appointments? .Where(a => a.AppointmentStartDate < dateNow && (a.AppointmentEndDate == null || a.AppointmentEndDate > dateNow)) .Select(a => new EstablishmentViewModel { Urn = a.EstablishmentUrn.Value, EstablishmentName = a.EstablishmentName }) .ToList(); var appointingBodies = await cachedLookupService.GovernorAppointingBodiesGetAllAsync(); var nationalities = await cachedLookupService.NationalitiesGetAllAsync(); return(new SharedGovernorViewModel { AppointingBodyName = appointingBodies.Single(g => g.Id == governor.AppointingBodyId).Name, AppointmentStartDate = appointment?.AppointmentStartDate != null ? new DateTimeViewModel(appointment.AppointmentStartDate) : new DateTimeViewModel(), AppointmentEndDate = appointment?.AppointmentEndDate != null ? new DateTimeViewModel(appointment.AppointmentEndDate) : new DateTimeViewModel(), DOB = governor.DOB, FullName = governor.GetFullName(), Id = governor.Id.Value, PostCode = governor.PostCode, Selected = appointment != null, PreExisting = appointment != null, SharedWith = sharedWith ?? new List <EstablishmentViewModel>(), MultiSelect = IsSharedGovernorRoleMultiSelect((eLookupGovernorRole)governor.RoleId) }); }
public EstablishmentReadApiService(HttpClientWrapper httpClient, ICachedLookupService cachedLookupService) { _httpClient = httpClient; _cachedLookupService = cachedLookupService; }
public async Task <string> GetAddressAsync(ICachedLookupService lookup) => StringUtil.ConcatNonEmpties(", ", Address_Line1, Address_Locality, Address_Line3, Address_CityOrTown, await lookup.GetNameAsync("CountyId", Address_CountyId), Address_PostCode);