public DataCollectionManager(ICatalogApiService catalogApiService, ISystemConfiguration config, IMerchantRepository merchantRepository, IProductLogRepository productLogRepository, IBus bus) { if (catalogApiService == null) { throw new ArgumentNullException("catalogApiService"); } if (productLogRepository == null) { throw new ArgumentNullException("productLogRepository"); } if (merchantRepository == null) { throw new ArgumentNullException("merchantRepository"); } if (config == null) { throw new ArgumentNullException("config"); } if (bus == null) { throw new ArgumentNullException("bus"); } _merchantRepository = merchantRepository; _config = config; _catalogApiService = catalogApiService; _productLogRepository = productLogRepository; _bus = bus; }
public CatalogCollectionProcess(ICatalogApiService apiService, ICatalogRepository repository) { if (apiService == null) { throw new ArgumentNullException("apiService"); } if (repository == null) { throw new ArgumentNullException("repository"); } _catalogApiService = apiService; _catalogRepository = repository; }
public ImageDownloader(ICatalogApiService catalogApiService, IProductRepository productRepository) { if (catalogApiService == null) { throw new ArgumentNullException("catalogApiService"); } if (productRepository == null) { throw new ArgumentNullException("productRepository"); } _catalogApiService = catalogApiService; _productRepository = productRepository; // _totalcount = _productRepository.GetTotalCount(); queue.Push(1); }
public CatalogController(ICatalogService service, ICatalogApiService apiservice) { this.service = service; this.apiservice = apiservice; }