Beispiel #1
0
 public HomeController(ICategoryRepository categoryRepository, IProductRepository productRepository, IProductImageRepository productImageRepository, IProductFeatureRepository productFeatureRepository)
 {
     _categoryRepository       = categoryRepository;
     _productRepository        = productRepository;
     _productImageRepository   = productImageRepository;
     _productFeatureRepository = productFeatureRepository;
 }
        public ProductProvider()
        {
            EfContext context = new EfContext();

            _productRepository      = new ProductRepository(context);
            _productImageRepository = new ProductImageRepository(context);
        }
Beispiel #3
0
 public ProductsController(IProductRepository productRepository,
                           IProductImageRepository productImageRepository, IOptions <WebApiSettings> settings)
 {
     _productRepository      = productRepository;
     _productImageRepository = productImageRepository;
     _settings = settings.Value;
 }
Beispiel #4
0
 public ProductBusiness(IProductRepository productRepository, IProductDbContext dbContext, IProductCategoryRepository productCategoryRepository, IProductImageRepository productImageRepository)
 {
     _productRepository         = productRepository;
     _dbContext                 = dbContext;
     _productCategoryRepository = productCategoryRepository;
     _productImageRepository    = productImageRepository;
 }
Beispiel #5
0
 public ProductImageService(IImageUploaderService imageService, IProductImageRepository repository, IProductService productService, IProductImageValidator productImageValidator)
 {
     _imageService          = imageService ?? throw new ArgumentNullException(nameof(imageService));
     _repository            = repository ?? throw new ArgumentNullException(nameof(repository));
     _productService        = productService ?? throw new ArgumentNullException(nameof(productService));
     _productImageValidator = productImageValidator ?? throw new ArgumentNullException(nameof(productImageValidator));
 }
Beispiel #6
0
 public ProductService(IProductRepository productRepository,
                       IProductImageRepository productImageRepository,
                       IStockRepository stockRepository)
 {
     _productRepository      = productRepository;
     _productImageRepository = productImageRepository;
     _stockRepository        = stockRepository;
 }
 public ProductService(IProductRepository repository, IProductOverviewRepository overviewRepository, IProductBadgeRepository badgeRepository, IProductImageRepository imageRepository, IProductValidator validator)
 {
     _repository         = repository ?? throw new ArgumentNullException(nameof(repository));
     _overviewRepository = overviewRepository ?? throw new ArgumentNullException(nameof(overviewRepository));
     _badgeRepository    = badgeRepository ?? throw new ArgumentNullException(nameof(badgeRepository));
     _imageRepository    = imageRepository ?? throw new ArgumentNullException(nameof(imageRepository));
     _validator          = validator ?? throw new ArgumentNullException(nameof(validator));
 }
 public ProductManagerService(IProductManager productManager, IProductImageRepository imageRepository,
                              IAmmountRepository ammountRepository, IMapper mapper, IProductsListRepository productsListRepository)
 {
     _productManager         = productManager;
     _imageRepository        = imageRepository;
     _ammountRepository      = ammountRepository;
     _mapper                 = mapper;
     _productsListRepository = productsListRepository;
 }
 public ProductCommandHandler(IUnitOfWork uow, IDomainNotification notifications,
                              IProductRepository productRepository,
                              IProductQuestionAnswerRepository productQuestionAnswerRepository,
                              IProductImageRepository productImageRepository) : base(uow, notifications)
 {
     _productQuestionAnswerRepository = productQuestionAnswerRepository;
     _productRepository      = productRepository;
     _productImageRepository = productImageRepository;
 }
Beispiel #10
0
 public ProductService(IProductRepository productRepository, IProductTagRepository productTagRepository, ITagRepository tagRepository,
                       IProductQuantityRepository productQuantityRepository, IProductImageRepository productImageRepository, IUnitOfWork unitOfWork)
 {
     _productRepository         = productRepository;
     _productTagRepository      = productTagRepository;
     _tagRepository             = tagRepository;
     _productQuantityRepository = productQuantityRepository;
     _productImageRepository    = productImageRepository;
     _unitOfWork = unitOfWork;
 }
Beispiel #11
0
 public LoadItemsJob(IEbayTradingService ebayTradingService, IEbayFindingService ebayFindingService,
                     IUnitOfWork uow, ISellerRepository sellerRepo, IItemRepository itemRepo, IProductImageRepository imageRepo)
 {
     _ebayTradingService = ebayTradingService;
     _ebayFindingService = ebayFindingService;
     _sellerRepo         = sellerRepo;
     _itemRepo           = itemRepo;
     _imageRepo          = imageRepo;
     _uow = uow;
 }
 public ProductService(IProductRepository productRepository, IMapper mapper,
                       IProductQuantityRepository productQuantityRepository, IUnitOfWork unitOfWork,
                       IWholePriceRepository wholePriceRepository,
                       IProductImageRepository productImageRepository)
 {
     _productRepository         = productRepository;
     _productQuantityRepository = productQuantityRepository;
     _productImageRepository    = productImageRepository;
     _wholePriceRepository      = wholePriceRepository;
     _mapper     = mapper;
     _unitOfWork = unitOfWork;
 }
Beispiel #13
0
 public ProductService(
     IProductRepository productRepository,
     IStyleRepository styleRepository,
     ICategoryRepository categoryRepository,
     IReviewRepository reviewRepository,
     IProductImageRepository productImageRepository)
 {
     _productRepository      = productRepository;
     _styleRepository        = styleRepository;
     _categoryRepository     = categoryRepository;
     _reviewRepository       = reviewRepository;
     _productImageRepository = productImageRepository;
 }
Beispiel #14
0
 public ProductService(
     IProductRepository productRepository,
     IStyleRepository styleRepository,
     IReviewRepository reviewRepository,
     IProductImageRepository productImageRepository,
     IMapper mapper)
 {
     _productRepository      = productRepository;
     _styleRepository        = styleRepository;
     _reviewRepository       = reviewRepository;
     _productImageRepository = productImageRepository;
     _mapper = mapper;
 }
Beispiel #15
0
 public ProductService(IProductRepository productRepository, ITagRepository tagRepository,
                       IProductQuantityRepository productQuantityRepository, IProductImageRepository productImageRepository,
                       IWholePriceRepository wholePriceRepository,
                       IProductTagRepository productTagRepository, IUnitOfWork unitOfWord)
 {
     _productRepository         = productRepository;
     _productQuantityRepository = productQuantityRepository;
     _productImageRepository    = productImageRepository;
     _wholePriceRepository      = wholePriceRepository;
     _tagRepository             = tagRepository;
     _productTagRepository      = productTagRepository;
     _unitOfWord = unitOfWord;
 }
Beispiel #16
0
 public ProductService(IProductRepository productionRepository, IProductTagRepository productTagRepository, ITagRepository tagRepository, IUnitOfWork unitOfWork, IProductQuantityRepository productQuantityRepository, IProductImageRepository productImageRepository, IWholePriceRepository wholePriceRepository, IProductCategoryRepository categoryRepository, IRatingRepository ratingRepository, IProductQuantityRepository productQuantity)
 {
     _productRepository         = productionRepository;
     _productTagRepository      = productTagRepository;
     _tagRepository             = tagRepository;
     _unitOfWork                = unitOfWork;
     _productQuantityRepository = productQuantityRepository;
     _productImageRepository    = productImageRepository;
     _wholePriceRepository      = wholePriceRepository;
     _categoryRepository        = categoryRepository;
     _ratingRepository          = ratingRepository;
     _productQuantity           = productQuantity;
 }
Beispiel #17
0
 public BrandController(IProductImageRepository productImageRepository, IProductRepository productRepository,
                        IBrandRepository brandRepository, ICategoryRepository categoryRepository, IHostingEnvironment environment, IOptions <appSettings> appSettings)
 {
     _productImageRepository = productImageRepository;
     _productRepository      = productRepository;
     _brandRepository        = brandRepository;
     _categoryRepository     = categoryRepository;
     _appSettings            = appSettings.Value;
     _environment            = environment;
     _serializerSettings     = new JsonSerializerSettings
     {
         Formatting = Formatting.Indented
     };
 }
Beispiel #18
0
 public ProductService(IProductRepository productRepository, ITagRepository tagRepository,
                       IProductCategoryRepository productCategoryRepository, IProductTagRepository productTagRepository,
                       IProductQuantityRepository productQuantityRepository, IProductImageRepository productImageRepository,
                       IWholePriceRepository wholePriceRepository, IUnitOfWork unitOfWork)
 {
     this.productCategoryRepository = productCategoryRepository;
     this.productRepository         = productRepository;
     this.tagRepository             = tagRepository;
     this.productTagRepository      = productTagRepository;
     this.productQuantityRepository = productQuantityRepository;
     this.productImageRepository    = productImageRepository;
     this.wholePriceRepository      = wholePriceRepository;
     this.unitOfWork = unitOfWork;
 }
Beispiel #19
0
 public StoreController(IUserRepository userRepository, IStoreRepository storeRepository,
                        IProductRepository productRepository, IProductImageRepository productImageRepository,
                        IHostingEnvironment environment, IOptions <appSettings> appSettings)
 {
     _userRepository         = userRepository;
     _storeRepository        = storeRepository;
     _appSettings            = appSettings.Value;
     _environment            = environment;
     _productRepository      = productRepository;
     _productImageRepository = productImageRepository;
     _serializerSettings     = new JsonSerializerSettings
     {
         Formatting = Formatting.Indented
     };
 }
Beispiel #20
0
 public SiteCatalogLogicImpl(ICatalogRepository catalogRepository, IPriceLogic priceLogic, IProductImageRepository imgRepository, ICategoryImageRepository categoryImageRepository,
                             ICacheRepository catalogCacheRepository, IDivisionLogic divisionLogic, IOrderHistoryHeaderRepsitory orderHistoryHeaderRepo,
                             IOrderHistoryDetailRepository orderHistoryDetailRepo, IExportSettingLogic externalCatalogRepository, IFavoritesListLogic favoriteLogic,
                             IHistoryLogic historyLogic)
 {
     _catalogCacheRepository    = catalogCacheRepository;
     _catalogRepository         = catalogRepository;
     _categoryImageRepository   = categoryImageRepository;
     _divisionLogic             = divisionLogic;
     _externalCatalogRepository = externalCatalogRepository;
     _favoriteLogic             = favoriteLogic;
     _historyLogic    = historyLogic;
     _imgRepository   = imgRepository;
     _orderDetailRepo = orderHistoryDetailRepo;
     _orderHeaderRepo = orderHistoryHeaderRepo;
     _priceLogic      = priceLogic;
 }
Beispiel #21
0
 public ProductController(IProductRepository productRepository, IProductTypeRepository productTypeRepository,
                          IMaterialRepository materialRepository, ICategoryRepository categoryRepository,
                          IWebHostEnvironment webHostEnvironment, IConfiguration config, IProductImageRepository productImageRepository,
                          ITagRepository tagRepository, IProductTagRepository productTagRepository,
                          IAccountRepository accountRepository, IProductReViewRepository productReViewRepository)
 {
     _config                      = config;
     _webHostEnvironment          = webHostEnvironment;
     _productTypeRepository       = productTypeRepository;
     _productRepository           = productRepository;
     _materialRepository          = materialRepository;
     _categoryRepository          = categoryRepository;
     _productTagRepository        = productTagRepository;
     this.accountRepository       = accountRepository;
     this.productReViewRepository = productReViewRepository;
     _productImageRepository      = productImageRepository;
     _tagRepository               = tagRepository;
 }
 public ProductService(IProductRepository productRepository, IUnitOfWork unitOfWork, IProductTagRepository productTagRepository,
                       ITagRepository tagRepository, IColorRepository colorRepository, ISizeRepository sizeRepository,
                       IProductQuantityRepository productQuantityRepository, IProductImageRepository productImageRepository,
                       IHostingEnvironment hostingEnvironment, IWholePriceRepository wholePriceRepository,
                       IProductCategoryRepository productCategoryRepository, IUserWishlistRepository userWishlistRepository)
 {
     this._productRepository         = productRepository;
     this._unitOfWork                = unitOfWork;
     this._productTagRepository      = productTagRepository;
     this._tagRepository             = tagRepository;
     this._colorRepository           = colorRepository;
     this._sizeRepository            = sizeRepository;
     this._productQuantityRepository = productQuantityRepository;
     this._productImageRepository    = productImageRepository;
     this._hostingEnvironment        = hostingEnvironment;
     this._wholePriceRepository      = wholePriceRepository;
     this._productCategoryRepository = productCategoryRepository;
     this._userWishlistRepository    = userWishlistRepository;
 }
Beispiel #23
0
 public ProductsController(IProductRepository productRepo, IProductImageRepository prodImgRepo)
 {
     _productRepo = productRepo;
     _prodImgRepo = prodImgRepo;
 }
Beispiel #24
0
 public ProductController(IProductRepository productRepository, ICategoryRepository categoryRepository, IProductImageRepository productImageRepository)
 {
     _productRepository      = productRepository;
     _categoryrepository     = categoryRepository;
     _productImagerepository = productImageRepository;
 }
Beispiel #25
0
 public ProductImageService(IProductImageRepository ProductImageRepository)
 {
     ProductImageRepo = ProductImageRepository;
 }
Beispiel #26
0
 public ProductImageManager(IProductImageRepository repo)
 {
     this.repo = repo;
 }
 public ProductImageManager(IProductImageRepository productImageRepository, IImageRepository imageRepository)
 {
     _productImageRepository = productImageRepository;
     _imageRepository        = imageRepository;
 }
        public AjaxServicesController(
            ISubsectionRepository subsectionRepository,
            IProfileRepository profileRepository,
            IAnnouncementBookmarkRepository announcementBookmarkRepository,
            IAnnouncementRepository announcementRepository,
            IAnnouncementImageRepository announcementImageRepository,
            IConfigRepository configRepository,
            IArticleRepository articleRepository,
            IArticleSectionRepository articleSectionRepository,
            IArticleSubsectionRepository articleSubsectionRepository,
            IRealtyRepository realtyRepository,
            IRealtyPhotoRepository realtyPhotoRepository,
            IRealtyBookmarkRepository realtyBookmarkRepository,
            IShopRepository shopRepository,
            ICatalogSecondCategoryRepository catalogSecondCategoryRepository,
            ICatalogThirdCategoryRepository catalogThirdCategoryRepository,
            IShopCategoryRefRepository shopCategoryRefRepository,
            IProductImageRepository productImageRepository,
            IShopProductRefRepository shopProductRefRepository,
            IProductBookmarkRepository productBookmarkRepository,
            IProductRepository productRepository)
        {
            _subsectionRepository         = subsectionRepository;
            _subsectionRepository.Context = rc;

            _profileRepository         = profileRepository;
            _profileRepository.Context = rc;

            _announcementBookmarkRepository         = announcementBookmarkRepository;
            _announcementBookmarkRepository.Context = rc;

            _announcementRepository         = announcementRepository;
            _announcementRepository.Context = rc;

            _announcementImageRepository         = announcementImageRepository;
            _announcementImageRepository.Context = rc;

            _configRepository         = configRepository;
            _configRepository.Context = rc;

            _articleRepository         = articleRepository;
            _articleRepository.Context = rc;

            _articleSectionRepository         = articleSectionRepository;
            _articleSectionRepository.Context = rc;

            _articleSubsectionRepository         = articleSubsectionRepository;
            _articleSubsectionRepository.Context = rc;

            _realtyRepository         = realtyRepository;
            _realtyRepository.Context = rc;

            _realtyPhotoRepository         = realtyPhotoRepository;
            _realtyPhotoRepository.Context = rc;

            _realtyBookmarkRepository         = realtyBookmarkRepository;
            _realtyBookmarkRepository.Context = rc;

            _shopRepository         = shopRepository;
            _shopRepository.Context = rc;

            _catalogSecondCategoryRepository         = catalogSecondCategoryRepository;
            _catalogSecondCategoryRepository.Context = rc;

            _catalogThirdCategoryRepository         = catalogThirdCategoryRepository;
            _catalogThirdCategoryRepository.Context = rc;

            _shopCategoryRefRepository         = shopCategoryRefRepository;
            _shopCategoryRefRepository.Context = rc;

            _productImageRepository         = productImageRepository;
            _productImageRepository.Context = rc;

            _shopProductRefRepository         = shopProductRefRepository;
            _shopProductRefRepository.Context = rc;

            _productBookmarkRepository         = productBookmarkRepository;
            _productBookmarkRepository.Context = rc;

            _productRepository         = productRepository;
            _productRepository.Context = rc;
        }
 public ProductImageService(IProductImageRepository productImageRepository, IUnitOfWork unitOfWork)
 {
     this._productImageRepository = productImageRepository;
     this._unitOfWork             = unitOfWork;
 }
 public ProductImageService(IProductImageRepository productImageRepository)
 {
     _productImageRepository = productImageRepository;
 }