Example #1
0
 public OrdersController(IOrdersRepository ordersRepository,
                         IOrderConverter orderConverter, IOrderPriceCalculator orderPriceCalculator)
 {
     this.ordersRepository     = ordersRepository;
     this.orderConverter       = orderConverter;
     this.orderPriceCalculator = orderPriceCalculator;
 }
 public SalesFacadeWithoutIntegration(ICustomerRepository customers, IOrderRepository orders, ISalesFactory salesFactory,
                                      IEmailSender emailSender, IOrderPriceCalculator priceCalculator)
 {
     this.customers       = customers;
     this.orders          = orders;
     this.salesFactory    = salesFactory;
     this.emailSender     = emailSender;
     this.priceCalculator = priceCalculator;
 }