Example #1
0
 public CreateOrderService(
     OrderFactory orderFactory,
     IOrdersRepository ordersRepository,
     ILastUserOrderProvider lastOrderProvider,
     IMediator mediator
     )
 {
     (this.orderFactory, orders, this.mediator) =
         (orderFactory, ordersRepository, mediator);
     this.lastOrderProvider = lastOrderProvider;
 }
Example #2
0
 public CreateOrderService(
     OrderFactory orderFactory,
     IOrdersRepository ordersRepository,
     IMediator mediator
     ) =>
 (this.orderFactory, orders, this.mediator) =