Beispiel #1
0
 public SearchController(DAL.IArticlesRepository articlesRepository)
 {
     if (articlesRepository == null)
     {
         throw new ArgumentNullException(nameof(articlesRepository));
     }
     _articlesRepository = articlesRepository;
 }
Beispiel #2
0
 public TengrinewsSpider(DAL.IArticlesRepository articlesRepository, Func <DAL.Infrastructure.IUnitOfWork> uowFactory, System.Net.Http.HttpClient client)
     : base(client)
 {
     if (articlesRepository == null)
     {
         throw new ArgumentNullException(nameof(articlesRepository));
     }
     if (uowFactory == null)
     {
         throw new ArgumentNullException(nameof(uowFactory));
     }
     _articlesRepository = articlesRepository;
     _uowFactory         = uowFactory;
 }