public OrderFacade(IOrderValidationService orderValidationService, IOrderRepository ordersRepo, IPcRepository pcRepo, IClientRepository clientRepo, IDeliveryService deliveryService, ITaxService taxService, IClientOrderFactory clientOrderFactory, INotifier notifier) { _orderValidationService = orderValidationService; _clientRepo = clientRepo; _pcRepo = pcRepo; _ordersRepo = ordersRepo; _deliveryService = deliveryService; _taxService = taxService; _orderFactory = clientOrderFactory; _notifier = notifier; }
public OrderProcesor( BPFinanceContext context, IBPFinanceRepository repository, string basketOrderDescription, int defaultOrderManagerId, IKeyedProvider <Tuple <int, int>, int> basketBusinessUnitIdProvider) { _context = context; _repository = repository; _basketOrderDescription = basketOrderDescription; _defaultOrderManagerId = defaultOrderManagerId; _basketBusinessUnitIdProvider = basketBusinessUnitIdProvider; _basketOrderFactory = new BasketOrderFactory(_basketOrderDescription); _clientOrderFactory = new ClientOrderFactory(); }
public ClientFacade(IClientRepository clientRepo, IClientOrderFactory clientOrderFactory, INotifier notifier) { _clientRepo = clientRepo; _clientOrderFacotry = clientOrderFactory; _notifier = notifier; }