public NewsController(INewsDataSource newsDataSource, WebsiteDbContext websiteDbContext) { _newsDataSource = newsDataSource ?? throw new ArgumentNullException(nameof(newsDataSource)); _websiteDbContext = websiteDbContext ?? throw new ArgumentNullException(nameof(websiteDbContext)); }
public NewsValuesController(INewsDataSource newsDataSource) { AdapterNews = newsDataSource; //todo: // - testy }
public NewsService(INewsDataSource dataSource , ITagsService tagsService) { _dataSource = dataSource; _tagsService = tagsService; }