public DiscountCommandsHandler(IDiscountRepository discountRepository, IEventPublisher eventPublisher, IProductRepository productRepository, IDiscountPriceCalculatorHelper priceCalculator) { _discountRepository = discountRepository; _productRepository = productRepository; _priceCalculator = priceCalculator; _eventPublisher = eventPublisher; }
public OrderCommandsHandler(IOrderRepository orderRepository, IProductRepository productRepository, IEventPublisher eventPublisher, IOrderPriceCalculatorHelper orderPriceCalculatorHelper, IDiscountPriceCalculatorHelper discountPriceCalculatorHelper, IDiscountRepository discountRepository) { _orderRepository = orderRepository; _productRepository = productRepository; _eventPublisher = eventPublisher; _orderPriceCalculatorHelper = orderPriceCalculatorHelper; _discountPriceCalculatorHelper = discountPriceCalculatorHelper; _discountRepository = discountRepository; }
public OrderPriceCalculatorHelper(IProductRepository productRepository, IDiscountPriceCalculatorHelper discountPriceCalculatorHelper) { _productRepository = productRepository; _discountPriceCalculatorHelper = discountPriceCalculatorHelper; }