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 OrderEnricher(IResponseBuilder responseBuilder, IOrderPriceCalculatorHelper orderPriceCalculatorHelper, IProductRepository productRepository) { _responseBuilder = responseBuilder; _orderPriceCalculatorHelper = orderPriceCalculatorHelper; _productRepository = productRepository; }