public ClientOrderController(IClientOrderProvider clientOrderProvider, IClientOrderHandler clientOrderHandler, IClientOrderValidator clientOrderValidator, IUserProvider userProvider, IDeliveryProvider deliveryProvider, IProductProvider productProvider ) { this.clientOrderProvider = clientOrderProvider; this.clientOrderHandler = clientOrderHandler; this.clientOrderValidator = clientOrderValidator; this.userProvider = userProvider; this.deliveryProvider = deliveryProvider; this.productProvider = productProvider; }
public OrderService(IPaymentProcessor paymentProcessor, IDeliveryProvider deliveryProvider) { _paymentProcessor = paymentProcessor; _deliveryProvider = deliveryProvider; }
public DeliveryController(IDeliveryProvider deliveryProvider, IDeliveryHandler deliveryHandler, IDeliveryValidator deliveryValidator) { this.deliveryProvider = deliveryProvider; this.deliveryHandler = deliveryHandler; this.deliveryValidator = deliveryValidator; }