public ARCatalogController(IModelProvider modelProvider,
                            IProductListHeaderRepository productListHeaderRepository,
                            IProductListRepository productListRepository,
                            IPromotedProductsRepository promotedProductsRepository,
                            IProductInformationRepository productInformationRepository,
                            IProductImagesRepository productImagesRepository,
                            IProductInventoryRepository productInventoryRepository,
                            IProductPriceRepository productPriceRepository,
                            IProductVariantsRepository productVariantsRepository,
                            IProductListPagerRepository productListPagerRepository,
                            IProductFacetsRepository productFacetsRepository,
                            IProductListSortingRepository productListSortingRepository,
                            IProductListPageInfoRepository productListPageInfoRepository,
                            IProductListItemsPerPageRepository productListItemsPerPageRepository,
                            ICatalogItemContainerRepository catalogItemContainerRepository,
                            IVisitedCategoryPageRepository visitedCategoryPageRepository,
                            IVisitedProductDetailsPageRepository visitedProductDetailsPageRepository,
                            ISearchInitiatedRepository searchInitiatedRepository,
                            IStorefrontContext storefrontContext,
                            ISiteContext siteContext,
                            IContext sitecoreContext,
                            IARCatalogRepository arRepository) : base(modelProvider, productListHeaderRepository,
                                                                      productListRepository, promotedProductsRepository, productInformationRepository,
                                                                      productImagesRepository, productInventoryRepository, productPriceRepository,
                                                                      productVariantsRepository, productListPagerRepository, productFacetsRepository,
                                                                      productListSortingRepository, productListPageInfoRepository,
                                                                      productListItemsPerPageRepository, catalogItemContainerRepository,
                                                                      visitedCategoryPageRepository, visitedProductDetailsPageRepository,
                                                                      searchInitiatedRepository, storefrontContext, siteContext, sitecoreContext)
 {
     _arRepository = arRepository;
 }
示例#2
0
 public DefaultProductInventoryProvider(
     IUnitOfWorkManager unitOfWorkManager,
     IDistributedEventBus distributedEventBus,
     IProductInventoryRepository productInventoryRepository)
 {
     _unitOfWorkManager          = unitOfWorkManager;
     _distributedEventBus        = distributedEventBus;
     _productInventoryRepository = productInventoryRepository;
 }
 public ProductInventoryAppService(
     IProductInventoryRepository repository,
     IProductStoreRepository productStoreRepository,
     DefaultProductInventoryProvider productInventoryProvider)
 {
     _repository               = repository;
     _productStoreRepository   = productStoreRepository;
     _productInventoryProvider = productInventoryProvider;
 }
 public ProductInventoryService(
     ILogger <IProductInventoryRepository> logger,
     IProductInventoryRepository productInventoryRepository,
     IApiProductInventoryRequestModelValidator productInventoryModelValidator,
     IBOLProductInventoryMapper bolproductInventoryMapper,
     IDALProductInventoryMapper dalproductInventoryMapper)
     : base(logger,
            productInventoryRepository,
            productInventoryModelValidator,
            bolproductInventoryMapper,
            dalproductInventoryMapper)
 {
 }
        public ProductService(IProductRepository productRepository, IProductInventoryRepository productInventoryRepository)
        {
            if (productRepository == null)
            {
                throw new ArgumentNullException("productRepository parameter is null");
            }
            if (productInventoryRepository == null)
            {
                throw new ArgumentNullException("productInventoryRepository parameter is null");
            }

            _productRepository          = productRepository;
            _productInventoryRepository = productInventoryRepository;
        }
 public AbstractProductInventoryService(
     ILogger logger,
     IProductInventoryRepository productInventoryRepository,
     IApiProductInventoryRequestModelValidator productInventoryModelValidator,
     IBOLProductInventoryMapper bolProductInventoryMapper,
     IDALProductInventoryMapper dalProductInventoryMapper)
     : base()
 {
     this.productInventoryRepository     = productInventoryRepository;
     this.productInventoryModelValidator = productInventoryModelValidator;
     this.bolProductInventoryMapper      = bolProductInventoryMapper;
     this.dalProductInventoryMapper      = dalProductInventoryMapper;
     this.logger = logger;
 }
示例#7
0
 public DefaultProductInventoryProvider(
     IGuidGenerator guidGenerator,
     ICurrentTenant currentTenant,
     IDistributedEventBus distributedEventBus,
     IProductInventoryRepository productInventoryRepository,
     IAbpDistributedLock distributedLock,
     ILogger <DefaultProductInventoryProvider> logger)
 {
     _guidGenerator              = guidGenerator;
     _currentTenant              = currentTenant;
     _distributedEventBus        = distributedEventBus;
     _productInventoryRepository = productInventoryRepository;
     _distributedLock            = distributedLock;
     _logger = logger;
 }
示例#8
0
 public PurchasableProductListController(IModelProvider modelProvider, IProductListHeaderRepository productListHeaderRepository,
                                         IProductListRepository productListRepository, IPromotedProductsRepository promotedProductsRepository,
                                         IProductInformationRepository productInformationRepository,
                                         IProductImagesRepository productImagesRepository, IProductInventoryRepository productInventoryRepository,
                                         IProductPriceRepository productPriceRepository, IProductVariantsRepository productVariantsRepository,
                                         IProductListPagerRepository productListPagerRepository, IProductFacetsRepository productFacetsRepository,
                                         IProductListSortingRepository productListSortingRepository,
                                         IProductListPageInfoRepository productListPageInfoRepository,
                                         IProductListItemsPerPageRepository productListItemsPerPageRepository,
                                         ICatalogItemContainerRepository catalogItemContainerRepository,
                                         ICartManager cartManager, IVisitorContext visitorContext,
                                         IVisitedCategoryPageRepository visitedCategoryPageRepository, IVisitedProductDetailsPageRepository visitedProductDetailsPageRepository,
                                         ISearchInitiatedRepository searchInitiatedRepository, IStorefrontContext storefrontContext,
                                         ISiteContext siteContext, IContext context, IPurchasableProductListRepository purchasableProductListRepository)
     : base(modelProvider, productListHeaderRepository, productListRepository, promotedProductsRepository,
            productInformationRepository, productImagesRepository, productInventoryRepository, productPriceRepository,
            productVariantsRepository, productListPagerRepository, productFacetsRepository, productListSortingRepository,
            productListPageInfoRepository, productListItemsPerPageRepository, catalogItemContainerRepository,
            visitedCategoryPageRepository, visitedProductDetailsPageRepository, searchInitiatedRepository,
            storefrontContext, siteContext, context)
 {
     _cartManager    = cartManager;
     _visitorContext = visitorContext;
     _purchasableProductListRepository = purchasableProductListRepository;
 }
 public ProductInventoryRepositoryTests()
 {
     _productInventoryRepository = GetRequiredService <IProductInventoryRepository>();
 }
 public ProductInventorysController(IProductInventoryRepository productInventoryRepository)
 {
     _productInventoryRepository = productInventoryRepository;
 }
 public AbstractApiProductInventoryRequestModelValidator(IProductInventoryRepository productInventoryRepository)
 {
     this.productInventoryRepository = productInventoryRepository;
 }
 public ApiProductInventoryRequestModelValidator(IProductInventoryRepository productInventoryRepository)
     : base(productInventoryRepository)
 {
 }
 public ProductionsController(IProductionRepository productionRepository, IProductInventoryRepository productInventoryRepository)
 {
     _productionRepository       = productionRepository;
     _productInventoryRepository = productInventoryRepository;
 }