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; }
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; }
public ProductStockService( IProductStockRepository productStockRepository, IProductRepository productRepository, IProductSizeRepository productSizeRepository) { _productStockRepository = productStockRepository; _productRepository = productRepository; _productSizeRepository = productSizeRepository; }
public ShippingProcessor(IProductStockRepository productStockRepository) { this._productStockRepository = productStockRepository; }
public ProductStockService(IProductStockRepository repository) : base(repository) { }
public AdminStockController(IProductRepository repo, ICatalogRepository catergoryRep, IProductStockRepository stockRep) { repository = repo; categoryRepository = catergoryRep; stockRepository = stockRep; }
/// <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; }
public ProductStockManager(Sitecore.Ecommerce.ShopContext shopContext, IProductStockRepository <ProductStock> productStockRepository, IProductRepository productRepository) : base(shopContext, productStockRepository, productRepository) { }
public ShippingService(IProductStockRepository productStockRepository) { _productStockRepository = productStockRepository; }