예제 #1
0
 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;
 }
예제 #3
0
 public OrderPriceCalculatorHelper(IProductRepository productRepository, IDiscountPriceCalculatorHelper discountPriceCalculatorHelper)
 {
     _productRepository             = productRepository;
     _discountPriceCalculatorHelper = discountPriceCalculatorHelper;
 }