Пример #1
0
 public ResultsAggregator(IServiceProvider serviceProvider,
                          ICsvDownloaderJob csvDownloaderJob,
                          IPartiesRepository partiesRepository,
                          IWinnersAggregator winnersAggregator,
                          IElectionsRepository electionRepository,
                          ITerritoryRepository territoryRepository,
                          ILiveElectionUrlBuilder liveElectionUrlBuilder)
 {
     _serviceProvider        = serviceProvider;
     _csvDownloaderJob       = csvDownloaderJob;
     _partiesRepository      = partiesRepository;
     _winnersAggregator      = winnersAggregator;
     _electionRepository     = electionRepository;
     _territoryRepository    = territoryRepository;
     _liveElectionUrlBuilder = liveElectionUrlBuilder;
 }
Пример #2
0
 public ResultsAggregator(IServiceProvider serviceProvider,
                          IPartiesRepository partiesRepository,
                          IWinnersAggregator winnersAggregator,
                          IElectionsRepository electionRepository,
                          IOptions <LiveElectionSettings> options,
                          ILiveElectionUrlBuilder urlBuilder,
                          IAppCache appCache,
                          IResultsCrawler resultsCrawler)
 {
     _serviceProvider    = serviceProvider;
     _partiesRepository  = partiesRepository;
     _winnersAggregator  = winnersAggregator;
     _electionRepository = electionRepository;
     _urlBuilder         = urlBuilder;
     _appCache           = appCache;
     _resultsCrawler     = resultsCrawler;
     _settings           = options.Value;
 }
Пример #3
0
 public WinnersController(IWinnersAggregator winnersAggregator)
 {
     _winnersAggregator = winnersAggregator;
 }