Пример #1
0
 public void SetupConfig()
 {
     _config = new GetCovidStatisticsJobConfig()
     {
         MakeAlertIfDataIsMissingAfterHour = 16,
         CovidStatisticsFolder             = "test"
     };
 }
 public CovidStatisticsBuilder(IDateTimeResolver dateTimeResolver,
                               ICovidStatisticsCsvDataRetrieveService covidStatisticsCsvDataRetrieveService,
                               GetCovidStatisticsJobConfig config)
 {
     _covidStatisticsCsvDataRetrieveService = covidStatisticsCsvDataRetrieveService;
     _dateTimeResolver = dateTimeResolver;
     _config           = config;
 }
Пример #3
0
 public void SetupConfig()
 {
     _config = new GetCovidStatisticsJobConfig()
     {
         MakeAlertIfDataIsMissingAfterHour = 16,
         CovidStatisticsFolder             = "test",
         TestsConductedTotalExtra          = 20000
     };
 }
Пример #4
0
 public GetCovidStatisticsJob(ILogger <CovidStatisticsBuilder> logger,
                              IDateTimeResolver dateTimeResolver,
                              ICovidStatisticsRepository covidStatisticsRepository,
                              ICovidStatisticsRetrieveService covidStatisticsRetrieveService,
                              GetCovidStatisticsJobConfig config)
 {
     _config = config;
     _covidStatisticsRetrieveService = covidStatisticsRetrieveService;
     _covidStatisticsRepository      = covidStatisticsRepository;
     _dateTimeResolver = dateTimeResolver;
     _logger           = logger;
 }
Пример #5
0
 public FetchCovidStatisticsService(IFileSystem fileSystem, GetCovidStatisticsJobConfig config)
 {
     _fileSystem = fileSystem;
     _config     = config;
 }
 public CovidStatisticsCsvParser(ILogger <CovidStatisticsCsvParser> logger, GetCovidStatisticsJobConfig settings, IDateTimeResolver dateTimeResolver)
 {
     _dateTimeResolver = dateTimeResolver;
     _settings         = settings;
     _logger           = logger;
 }