public CatalogController() { superCategoryRepo = new SuperCategoryRepository(new GainBargainContext()); categoryRepo = new Repository <Category>(new GainBargainContext()); productRepo = new ProductsCacheRepository(new GainBargainContext()); marketRepo = new MarketRepository(new GainBargainContext()); favProductRepository = new FavoriteProductRepository(); }
public UserController() { favCatRepository = new FavoriteCategoriesRepository(); favProdRepository = new FavoriteProductRepository(); userRepository = new Repository <User>(new GainBargainContext()); productRepository = new ProductsCacheRepository(new GainBargainContext()); categoryRepository = new Repository <Category>(new GainBargainContext()); db = new GainBargainContext(); }
public ProductsService(IProductsRepository productsRepository, IPricesCacheRepository pricesCacheRepository, IProductCacheRepository productCacheRepository, IOptions <ProductsSettings> settings, ISelfHttpClient selfHttpClient) { _productsRepository = productsRepository; _selfHttpClient = selfHttpClient; _pricesCacheRepository = pricesCacheRepository; _productCacheRepository = productCacheRepository; _settings = settings.Value; }
public GetAllProductsCachedQueryHandler(IProductCacheRepository productCache, IMapper mapper) { _productCache = productCache; _mapper = mapper; }
public HomeController(IProductRepository _productRepository, IProductCacheRepository _cacheRepository) { productRepository = _productRepository; cacheRepository = _cacheRepository; }
public ServiceCrawlerCache(IProductRepository productRepository, IProductCacheRepository productRepositoryProductCache) { _productRepository = productRepository; _productRepositoryProductCache = productRepositoryProductCache; }
public ManagerCacheProductCrawler(IProductCacheRepository productCacheRepository, IProductRepository productRepository, ICompanyRepository companyRepository) { _productCacheRepository = productCacheRepository; _productRepository = productRepository; _companyRepository = companyRepository; }