public OrderManager(IProductStockRepository productStockRepository,
                     IPaymentProcessor paymentProcessor, IShippingProcessor shippingProcessor)
 {
     _productStockRepository = productStockRepository;
     _paymentProcessor       = paymentProcessor;
     _shippingProcessor      = shippingProcessor;
 }
 public OrderManager(IShippingProcessor shippingProcessor, IPaymentProcessor paymentProcessor,
                     IProductStockRepository productStockRepository)
 {
     this._shippingProcessor      = shippingProcessor;
     this._paymentProcessor       = paymentProcessor;
     this._productStockRepository = productStockRepository;
 }
        public void ShipProduct(Product product)
        {
            _productStockRepository = new ProductStockRepository();
            _productStockRepository.ReduceStock(product);

            Console.WriteLine("Call Shipping API");
        }
 public OrderService(IOrderRepository orderRepository,
                     ICountryRepository countryRepository,
                     IProductStockRepository productStockRepository)
 {
     _orderRepository        = orderRepository;
     _countryRepository      = countryRepository;
     _productStockRepository = productStockRepository;
 }
Exemplo n.º 5
0
 public BasketService(IBasketProductRepository basketProductRepository, IBasketRepository basketRepository, IProductStockRepository productStockRepository, IUnitOfWork unitOfWork, ILogger <BasketService> logger)
 {
     _basketProductRepository = basketProductRepository;
     _basketRepository        = basketRepository;
     _productStockRepository  = productStockRepository;
     _unitOfWork = unitOfWork;
     _logger     = logger;
 }
 public OrderManger(IProductStockRepository productStockRepository,
                    IPaymentService paymentService,
                    IShippingService shippingService)
 {
     _productStockRepository = productStockRepository;
     _paymentService         = paymentService;
     _shippingService        = shippingService;
 }
Exemplo n.º 7
0
 public ProductStockService(
     IProductStockRepository productStockRepository,
     IProductRepository productRepository,
     IProductSizeRepository productSizeRepository)
 {
     _productStockRepository = productStockRepository;
     _productRepository      = productRepository;
     _productSizeRepository  = productSizeRepository;
 }
Exemplo n.º 8
0
 public ShippingProcessor(IProductStockRepository productStockRepository)
 {
     this._productStockRepository = productStockRepository;
 }
Exemplo n.º 9
0
 public ProductStockService(IProductStockRepository repository) : base(repository)
 {
 }
Exemplo n.º 10
0
 public AdminStockController(IProductRepository repo, ICatalogRepository catergoryRep, IProductStockRepository stockRep)
 {
     repository         = repo;
     categoryRepository = catergoryRep;
     stockRepository    = stockRep;
 }
Exemplo n.º 11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ProductStockController"/> class.
 /// </summary>
 /// <param name="productStockRepository">The product stock repository.</param>
 public ProductStockController(IProductStockRepository productStockRepository)
 {
     _productStockRepository = productStockRepository;
 }
Exemplo n.º 12
0
 public ProductStockManager(Sitecore.Ecommerce.ShopContext shopContext, IProductStockRepository <ProductStock> productStockRepository, IProductRepository productRepository) : base(shopContext, productStockRepository, productRepository)
 {
 }
Exemplo n.º 13
0
 public ShippingService(IProductStockRepository productStockRepository)
 {
     _productStockRepository = productStockRepository;
 }