コード例 #1
0
 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;
 }
コード例 #2
0
ファイル: OrderProcesor.cs プロジェクト: asutormin/CkpWebApi
        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();
        }
コード例 #3
0
 public ClientFacade(IClientRepository clientRepo, IClientOrderFactory clientOrderFactory, INotifier notifier)
 {
     _clientRepo         = clientRepo;
     _clientOrderFacotry = clientOrderFactory;
     _notifier           = notifier;
 }