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; }
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; }
public WinnersController(IWinnersAggregator winnersAggregator) { _winnersAggregator = winnersAggregator; }