public ScrapeController(ILinkScraperService linkScraperService, ICacheUrlDataRepository cache, IStopwordsRepository stopwordsRepository, ITextScraperService textScraperService) { _linkScraperService = linkScraperService ?? throw new ArgumentNullException(nameof(linkScraperService)); _textScraperService = textScraperService ?? throw new ArgumentNullException(nameof(textScraperService)); _cache = cache ?? throw new ArgumentNullException(nameof(cache)); _stopwordsRepository = stopwordsRepository ?? throw new ArgumentNullException(nameof(stopwordsRepository)); }
public StopwordsController(IStopwordsRepository stopwordsRepository) { _stopwordsRepository = stopwordsRepository ?? throw new ArgumentNullException(nameof(stopwordsRepository)); }