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