public SearchController(
     IApprenticeshipSearchServiceV1 apprenticeshipSearchServiceV1,
     IProviderSearchService providerSearchService,
     IProviderMapping providerMapping,
     ILogger <SearchController> logger)
 {
     _apprenticeshipSearchServiceV1 = apprenticeshipSearchServiceV1;
     _providerSearchService         = providerSearchService;
     _providerMapping = providerMapping;
     _logger          = logger;
 }
 public ApprenticeshipProviderRepository(
     IElasticsearchCustomClient elasticsearchCustomClient,
     ILogger <ApprenticeshipProviderRepository> applicationLogger,
     IConfigurationSettings applicationSettings,
     IProviderMapping providerMapping)
 {
     _elasticsearchCustomClient = elasticsearchCustomClient;
     _applicationLogger         = applicationLogger;
     _applicationSettings       = applicationSettings;
     _providerMapping           = providerMapping;
 }
コード例 #3
0
        public ProviderRepository(
            IElasticsearchCustomClient elasticsearchCustomClient,
            ILog applicationLogger,
            IConfigurationSettings applicationSettings,
            IProviderLocationSearchProvider providerLocationSearchProvider,
            IProviderMapping providerMapping)
        {
            _elasticsearchCustomClient      = elasticsearchCustomClient;
            _applicationLogger              = applicationLogger;
            _applicationSettings            = applicationSettings;
            _providerLocationSearchProvider = providerLocationSearchProvider;
            _providerMapping = providerMapping;

            _providerDocumentType = Is <RoatpProvidersFeature> .Enabled ? "providerapidocument" : "providerdocument";
        }
コード例 #4
0
 public ProviderRepository(
     IElasticsearchCustomClient elasticsearchCustomClient,
     ILogger <ProviderRepository> applicationLogger,
     IConfigurationSettings applicationSettings,
     IProviderLocationSearchProvider providerLocationSearchProvider,
     IProviderMapping providerMapping,
     IQueryHelper queryHelper,
     IActiveApprenticeshipChecker activeApprenticeshipChecker,
     IPaginationHelper paginationHelper)
 {
     _elasticsearchCustomClient      = elasticsearchCustomClient;
     _applicationLogger              = applicationLogger;
     _applicationSettings            = applicationSettings;
     _providerLocationSearchProvider = providerLocationSearchProvider;
     _providerMapping             = providerMapping;
     _queryHelper                 = queryHelper;
     _activeApprenticeshipChecker = activeApprenticeshipChecker;
     _paginationHelper            = paginationHelper;
 }