Ejemplo n.º 1
0
 public ProductManager(
     IProductRepository productRepository,
     IProductPriceProvider productPriceProvider,
     IProductCategoryRepository productCategoryRepository,
     IProductInventoryProvider productInventoryProvider,
     IProductGroupConfigurationProvider productGroupConfigurationProvider)
 {
     _productRepository                 = productRepository;
     _productPriceProvider              = productPriceProvider;
     _productCategoryRepository         = productCategoryRepository;
     _productInventoryProvider          = productInventoryProvider;
     _productGroupConfigurationProvider = productGroupConfigurationProvider;
 }
Ejemplo n.º 2
0
 public ProductManager(
     IProductRepository productRepository,
     IProductPriceProvider productPriceProvider,
     IProductDetailRepository productDetailRepository,
     IProductCategoryRepository productCategoryRepository,
     IProductInventoryProviderResolver productInventoryProviderResolver,
     IAttributeOptionIdsSerializer attributeOptionIdsSerializer,
     IProductGroupConfigurationProvider productGroupConfigurationProvider)
 {
     _productRepository                 = productRepository;
     _productPriceProvider              = productPriceProvider;
     _productDetailRepository           = productDetailRepository;
     _productCategoryRepository         = productCategoryRepository;
     _productInventoryProviderResolver  = productInventoryProviderResolver;
     _attributeOptionIdsSerializer      = attributeOptionIdsSerializer;
     _productGroupConfigurationProvider = productGroupConfigurationProvider;
 }
Ejemplo n.º 3
0
 public Basket(IProductPriceProvider productPriceProvider, IDiscountCalculator discountCalculator)
 {
     BasketItems           = new List <BasketItem>();
     _productPriceProvider = productPriceProvider;
     _discountCalculator   = discountCalculator;
 }
Ejemplo n.º 4
0
 public ProductDiscountOffer(IProductPriceProvider productPriceProvider, Product offerProduct, int minimumEligibleProducts)
 {
     _productPriceProvider    = productPriceProvider;
     _offerProduct            = offerProduct;
     _minimumEligibleProducts = minimumEligibleProducts;
 }
Ejemplo n.º 5
0
 public PercentageDiscountOffer(IProductPriceProvider productPriceProvider, List <Product> offerProducts, decimal discountPercentage)
 {
     _productPriceProvider = productPriceProvider;
     _offerProducts        = offerProducts;
     _discountPercentage   = discountPercentage;
 }