public SearchResultPreviewOrchestrator(IEmployerVacancyClient client, IRecruitVacancyClient vacancyClient, IGeocodeImageService mapService, IMinimumWageProvider wageProvider)
 {
     _client        = client;
     _vacancyClient = vacancyClient;
     _mapService    = mapService;
     _wageProvider  = wageProvider;
 }
Exemple #2
0
 public DisplayVacancyViewModelMapper(
     IGeocodeImageService mapService,
     IOptions <ExternalLinksConfiguration> externalLinksOptions,
     IRecruitVacancyClient vacancyClient)
 {
     _mapService = mapService;
     _externalLinksConfiguration = externalLinksOptions.Value;
     _vacancyClient = vacancyClient;
 }
 public ReviewMapper(ILogger <ReviewMapper> logger,
                     IQaVacancyClient vacancyClient,
                     IGeocodeImageService mapService,
                     IRuleMessageTemplateRunner ruleTemplateRunner,
                     IReviewSummaryService reviewSummaryService)
 {
     _logger               = logger;
     _vacancyClient        = vacancyClient;
     _mapService           = mapService;
     _qualifications       = new Lazy <IList <string> >(() => _vacancyClient.GetCandidateQualificationsAsync().Result.QualificationTypes);
     _ruleTemplateRunner   = ruleTemplateRunner;
     _reviewSummaryService = reviewSummaryService;
 }
        public static string GetEmployerLocationMapUrl(Vacancy vacancy, IGeocodeImageService mapService, int width, int height)
        {
            if (vacancy.EmployerLocation.HasGeocode)
            {
                return(mapService.GetMapImageUrl(
                           vacancy.EmployerLocation.Latitude.ToString(),
                           vacancy.EmployerLocation.Longitude.ToString(),
                           width,
                           height,
                           vacancy.GeocodeUsingOutcode == false));
            }

            return(vacancy.GeocodeUsingOutcode
                ? mapService.GetMapImageUrl(vacancy.EmployerLocation.PostcodeAsOutcode(), width, height, false)
                : mapService.GetMapImageUrl(vacancy.EmployerLocation.Postcode, width, height, true));
        }