Ejemplo n.º 1
0
 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();
 }
Ejemplo n.º 2
0
 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();
 }
Ejemplo n.º 3
0
 public ProductsService(IProductsRepository productsRepository, IPricesCacheRepository pricesCacheRepository,
                        IProductCacheRepository productCacheRepository, IOptions <ProductsSettings> settings, ISelfHttpClient selfHttpClient)
 {
     _productsRepository     = productsRepository;
     _selfHttpClient         = selfHttpClient;
     _pricesCacheRepository  = pricesCacheRepository;
     _productCacheRepository = productCacheRepository;
     _settings = settings.Value;
 }
Ejemplo n.º 4
0
 public GetAllProductsCachedQueryHandler(IProductCacheRepository productCache, IMapper mapper)
 {
     _productCache = productCache;
     _mapper       = mapper;
 }
Ejemplo n.º 5
0
 public HomeController(IProductRepository _productRepository, IProductCacheRepository _cacheRepository)
 {
     productRepository = _productRepository;
     cacheRepository   = _cacheRepository;
 }
Ejemplo n.º 6
0
 public ServiceCrawlerCache(IProductRepository productRepository, IProductCacheRepository productRepositoryProductCache)
 {
     _productRepository             = productRepository;
     _productRepositoryProductCache = productRepositoryProductCache;
 }
Ejemplo n.º 7
0
 public ManagerCacheProductCrawler(IProductCacheRepository productCacheRepository, IProductRepository productRepository, ICompanyRepository companyRepository)
 {
     _productCacheRepository = productCacheRepository;
     _productRepository      = productRepository;
     _companyRepository      = companyRepository;
 }