Example #1
0
        public CoursesService(
            //ILogger log,
            ICosmosDbHelper cosmosDbHelper,
            SearchServiceWrapper searchServiceWrapper,
            IOptions <ProviderServiceSettings> providerServiceSettings,
            IOptions <VenueServiceSettings> venueServiceSettings,
            IOptions <SearchServiceSettings> searchServiceSettings,
            IOptions <QualificationServiceSettings> qualServiceSettings,
            IOptions <CosmosDbCollectionSettings> settings,
            IOptions <CourseServiceSettings> courseServiceSettings)
        {
            //Throw.IfNull(log, nameof(log));
            Throw.IfNull(cosmosDbHelper, nameof(cosmosDbHelper));
            Throw.IfNull(searchServiceWrapper, nameof(searchServiceWrapper));
            Throw.IfNull(settings, nameof(settings));
            Throw.IfNull(providerServiceSettings, nameof(providerServiceSettings));
            Throw.IfNull(venueServiceSettings, nameof(venueServiceSettings));
            Throw.IfNull(qualServiceSettings, nameof(qualServiceSettings));
            Throw.IfNull(searchServiceSettings, nameof(searchServiceSettings));

            //_log = log;
            _cosmosDbHelper          = cosmosDbHelper;
            _settings                = settings.Value;
            _providerServiceSettings = providerServiceSettings.Value;
            _venueServiceSettings    = venueServiceSettings.Value;
            _qualServiceSettings     = qualServiceSettings.Value;
            _searchServiceSettings   = searchServiceSettings.Value;
            _courseServiceSettings   = courseServiceSettings.Value;
            _searchServiceWrapper    = searchServiceWrapper;
        }
        public CourseMigrationReportService(ICosmosDbHelper cosmosDbHelper, IOptions<CosmosDbCollectionSettings> settings)
        {
            Throw.IfNull(cosmosDbHelper, nameof(cosmosDbHelper));
            Throw.IfNull(settings, nameof(settings));

            _cosmosDbHelper = cosmosDbHelper;
            _settings = settings.Value;
        }
Example #3
0
        public ApprenticeshipServiceWrapper(IOptions <ApprenticeshipServiceSettings> settings, ICosmosDbHelper cosmosDbHelper,
                                            IOptions <CosmosDbSettings> cosmosDbSettings,
                                            IOptions <CosmosDbCollectionSettings> cosmosDbCollectionSettings)
        {
            Throw.IfNull(settings, nameof(settings));
            _settings = settings.Value;

            _cosmosDbHelper             = cosmosDbHelper;
            _cosmosDbSettings           = cosmosDbSettings.Value;
            _cosmosDbCollectionSettings = cosmosDbCollectionSettings.Value;
        }
        public ApprenticeshipCollectionService(
            ICosmosDbHelper cosmosDbHelper,
            IOptions <CosmosDbSettings> cosmosDbSettings,
            IOptions <CosmosDbCollectionSettings> cosmosDbCollectionSettings)
        {
            Throw.IfNull(cosmosDbHelper, nameof(cosmosDbHelper));
            Throw.IfNull(cosmosDbSettings, nameof(cosmosDbSettings));
            Throw.IfNull(cosmosDbCollectionSettings, nameof(cosmosDbCollectionSettings));

            _cosmosDbHelper             = cosmosDbHelper;
            _cosmosDbSettings           = cosmosDbSettings.Value;
            _cosmosDbCollectionSettings = cosmosDbCollectionSettings.Value;
        }
        public FeChoiceService(
            ICosmosDbHelper cosmosDbHelper,
            CosmosDbSettings cosmosDbSettings,
            CosmosDbCollectionSettings cosmosDbCollectionSettings)
        {
            Throw.IfNull(cosmosDbHelper, nameof(cosmosDbHelper));
            Throw.IfNull(cosmosDbSettings, nameof(cosmosDbSettings));
            Throw.IfNull(cosmosDbCollectionSettings, nameof(cosmosDbCollectionSettings));

            _cosmosDbHelper             = cosmosDbHelper;
            _cosmosDbSettings           = cosmosDbSettings;
            _cosmosDbCollectionSettings = cosmosDbCollectionSettings;
        }
        public ApprenticeshipFrameworkService(
            ICosmosDbHelper cosmosDbHelper,
            CosmosDbSettings cosmosDbSettings,
            CosmosDbCollectionSettings cosmosDbCollectionSettings)
        {
            Throw.IfNull(cosmosDbHelper, nameof(cosmosDbHelper));
            Throw.IfNull(cosmosDbSettings, nameof(cosmosDbSettings));
            Throw.IfNull(cosmosDbCollectionSettings, nameof(cosmosDbCollectionSettings));

            _cosmosDbHelper             = cosmosDbHelper;
            _cosmosDbSettings           = cosmosDbSettings;
            _cosmosDbCollectionSettings = cosmosDbCollectionSettings;
        }
Example #7
0
        public StandardSectorCodeService(
            ICosmosDbHelper cosmosDbHelper,
            CosmosDbSettings cosmosDbSettings,
            CosmosDbCollectionSettings cosmosDbCollectionSettings)
        {
            Throw.IfNull(cosmosDbHelper, nameof(cosmosDbHelper));
            Throw.IfNull(cosmosDbSettings, nameof(cosmosDbSettings));
            Throw.IfNull(cosmosDbCollectionSettings, nameof(cosmosDbCollectionSettings));

            _cosmosDbHelper             = cosmosDbHelper;
            _cosmosDbSettings           = cosmosDbSettings;
            _cosmosDbCollectionSettings = cosmosDbCollectionSettings;
        }
        public MigrationReportCollectionService(
            ICosmosDbHelper cosmosDbHelper,
            IOptions <CosmosDbSettings> cosmosDbSettings,
            IOptions <CosmosDbCollectionSettings> cosmosDbCollectionSettings)
        {
            Throw.IfNull(cosmosDbHelper, nameof(cosmosDbHelper));
            Throw.IfNull(cosmosDbSettings, nameof(cosmosDbSettings));
            Throw.IfNull(cosmosDbCollectionSettings, nameof(cosmosDbCollectionSettings));

            _cosmosDbHelper             = cosmosDbHelper;
            _cosmosDbSettings           = cosmosDbSettings.Value;
            _cosmosDbCollectionSettings = cosmosDbCollectionSettings.Value;
        }
Example #9
0
        public SectorSubjectAreaTier1Service(
            ICosmosDbHelper cosmosDbHelper,
            CosmosDbSettings cosmosDbSettings,
            CosmosDbCollectionSettings cosmosDbCollectionSettings)
        {
            Throw.IfNull(cosmosDbHelper, nameof(cosmosDbHelper));
            Throw.IfNull(cosmosDbSettings, nameof(cosmosDbSettings));
            Throw.IfNull(cosmosDbCollectionSettings, nameof(cosmosDbCollectionSettings));

            _cosmosDbHelper             = cosmosDbHelper;
            _cosmosDbSettings           = cosmosDbSettings;
            _cosmosDbCollectionSettings = cosmosDbCollectionSettings;
        }
        public VenueCollectionService(
            ICosmosDbHelper cosmosDbHelper,
            IOptions <CosmosDbSettings> cosmosDbSettings,
            IOptions <CosmosDbCollectionSettings> cosmosDbCollectionSettings)
        {
            Throw.IfNull(cosmosDbHelper, nameof(cosmosDbHelper));
            Throw.IfNull(cosmosDbSettings, nameof(cosmosDbSettings));
            Throw.IfNull(cosmosDbCollectionSettings, nameof(cosmosDbCollectionSettings));

            _cosmosDbHelper             = cosmosDbHelper;
            _cosmosDbSettings           = cosmosDbSettings.Value;
            _cosmosDbCollectionSettings = cosmosDbCollectionSettings.Value;
            _documentClient             = _cosmosDbHelper.GetClient();
        }
Example #11
0
        public ProviderCollectionService(
            ICosmosDbHelper cosmosDbHelper,
            IOptions <CosmosDbSettings> cosmosDbSettings,
            IOptions <CosmosDbCollectionSettings> cosmosDbCollectionSettings)
        {
            Throw.IfNull(cosmosDbHelper, nameof(cosmosDbHelper));
            Throw.IfNull(cosmosDbSettings, nameof(cosmosDbSettings));
            Throw.IfNull(cosmosDbCollectionSettings, nameof(cosmosDbCollectionSettings));

            _cosmosDbHelper             = cosmosDbHelper;
            _client                     = cosmosDbHelper.GetClient();
            _cosmosDbSettings           = cosmosDbSettings.Value;
            _cosmosDbCollectionSettings = cosmosDbCollectionSettings.Value;
        }
Example #12
0
 public ApprenticeshipService(
     ICosmosDbHelper cosmosDbHelper,
     IOptions <CosmosDbCollectionSettings> cosmosSettings,
     IDASHelper DASHelper,
     IProviderServiceClient providerServiceClient,
     IReferenceDataServiceClient referenceDataServiceClient,
     TelemetryClient telemetryClient)
 {
     _cosmosDbHelper             = cosmosDbHelper ?? throw new ArgumentNullException(nameof(cosmosDbHelper));
     _cosmosSettings             = cosmosSettings?.Value ?? throw new ArgumentNullException(nameof(cosmosSettings));
     _DASHelper                  = DASHelper ?? throw new ArgumentNullException(nameof(DASHelper));
     _providerServiceClient      = providerServiceClient ?? throw new ArgumentNullException(nameof(providerServiceClient));
     _referenceDataServiceClient = referenceDataServiceClient ?? throw new ArgumentNullException(nameof(referenceDataServiceClient));
     _telemetryClient            = telemetryClient ?? throw new ArgumentNullException(nameof(telemetryClient));
 }
        public ApprenticeshipService(
            ICosmosDbHelper cosmosDbHelper,
            ITribalHelper tribalHelper,
            IOptions <CosmosDbCollectionSettings> settings,
            IOptions <ProviderServiceSettings> providerServiceSettings)
        {
            Throw.IfNull(cosmosDbHelper, nameof(cosmosDbHelper));
            Throw.IfNull(tribalHelper, nameof(tribalHelper));
            Throw.IfNull(settings, nameof(settings));
            Throw.IfNull(providerServiceSettings, nameof(providerServiceSettings));

            _cosmosDbHelper          = cosmosDbHelper;
            _tribalHelper            = tribalHelper;
            _settings                = settings.Value;
            _providerServiceSettings = providerServiceSettings.Value;
        }
        public CoursesService(
            ICosmosDbHelper cosmosDbHelper,
            ISearchServiceWrapper searchServiceWrapper,
            IOptions <SearchServiceSettings> searchServiceSettings,
            IOptions <CosmosDbCollectionSettings> settings,
            ProviderServiceWrapper providerServiceWrapper,
            QualificationServiceWrapper qualificationServiceWrapper,
            VenueServiceWrapper venueServiceWrapper,
            FeChoiceServiceWrapper feChoiceServiceWrapper)
        {
            Throw.IfNull(cosmosDbHelper, nameof(cosmosDbHelper));
            Throw.IfNull(searchServiceWrapper, nameof(searchServiceWrapper));
            Throw.IfNull(settings, nameof(settings));
            Throw.IfNull(searchServiceSettings, nameof(searchServiceSettings));

            _cosmosDbHelper              = cosmosDbHelper;
            _settings                    = settings.Value;
            _searchServiceSettings       = searchServiceSettings.Value;
            _searchServiceWrapper        = searchServiceWrapper;
            _providerServiceWrapper      = providerServiceWrapper;
            _qualificationServiceWrapper = qualificationServiceWrapper;
            _venueServiceWrapper         = venueServiceWrapper;
            _feChoiceServiceWrapper      = feChoiceServiceWrapper;
        }
 public DfcReportService(ICosmosDbHelper cosmosDbHelper, IOptions <CosmosDbCollectionSettings> settings)
 {
     _cosmosDbHelper = cosmosDbHelper;
     _settings       = settings.Value;
 }