예제 #1
0
 public CartService(
     IProductService productService,
     IPricingService pricingService,
     IOrderGroupFactory orderGroupFactory,
     CustomerContextFacade customerContext,
     IPlacedPriceProcessor placedPriceProcessor,
     IInventoryProcessor inventoryProcessor,
     ILineItemValidator lineItemValidator,
     IOrderRepository orderRepository,
     IPromotionEngine promotionEngine,
     IAddressBookService addressBookService,
     ICurrentMarket currentMarket,
     ICurrencyService currencyService,
     ReferenceConverter referenceConverter,
     IContentLoader contentLoader,
     IRelationRepository relationRepository)
 {
     _productService       = productService;
     _pricingService       = pricingService;
     _orderGroupFactory    = orderGroupFactory;
     _customerContext      = customerContext;
     _placedPriceProcessor = placedPriceProcessor;
     _inventoryProcessor   = inventoryProcessor;
     _lineItemValidator    = lineItemValidator;
     _promotionEngine      = promotionEngine;
     _orderRepository      = orderRepository;
     _addressBookService   = addressBookService;
     _currentMarket        = currentMarket;
     _currencyService      = currencyService;
     _referenceConverter   = referenceConverter;
     _contentLoader        = contentLoader;
     _relationRepository   = relationRepository;
 }
 public OrderControllerBase(
     IOrderRepository orderRepository
     , IOrderGroupFactory orderGroupFactory
     , IOrderGroupCalculator orderGroupCalculator
     , IContentLoader contentLoader
     , ILineItemCalculator lineItemCalculator
     , IPlacedPriceProcessor placedPriceProcessor
     , IInventoryProcessor inventoryProcessor
     , ILineItemValidator lineItemValidator
     , IPromotionEngine promotionEngine
     , ICurrentMarket currentMarket
     , IPaymentProcessor paymentProcessor)
 {
     _orderRepository      = orderRepository;
     _orderGroupFactory    = orderGroupFactory;
     _orderGroupCalculator = orderGroupCalculator;
     _contentLoader        = contentLoader;
     _promotionEngine      = promotionEngine;
     _lineItemCalculator   = lineItemCalculator;
     _inventoryProcessor   = inventoryProcessor;
     _lineItemValidator    = lineItemValidator;
     _placedPriceProcessor = placedPriceProcessor;
     _currentMarket        = currentMarket;
     _paymentProcessor     = paymentProcessor;
 }
        // ToDo: move to .ctor
        //Injected<ICatalogSystem> _cat; // just to demo
        //Injected<ReferenceConverter> _refConv;
        //Injected<PricingLoader> _priceLoader;

        public VariationController(
            IContentLoader contentLoader
            , UrlResolver urlResolver
            , AssetUrlResolver assetUrlResolver
            , ThumbnailUrlResolver thumbnailUrlResolver // use this in node listing instead
            , IPriceService priceService
            , IPriceDetailService pricedetailService
            , ICurrentMarket currentMarket
            , IPromotionEngine promotionEngine
            , IOrderRepository orderRepository
            , IOrderGroupFactory orderGroupFactory
            , ILineItemCalculator lineItemCalculator
            , ILineItemValidator lineItemValidator
            , IPlacedPriceProcessor placedPriceProcessor
            , ICurrentMarket currentMarketService
            , IInventoryService inventoryService
            , IWarehouseRepository warehouseRepository
            , MyPriceCalculator myPriceCalculator
            )
            : base(contentLoader, urlResolver, assetUrlResolver, thumbnailUrlResolver, currentMarket)
        {
            _priceService       = priceService;
            _priceDetailService = pricedetailService;
            //_currentMarket2 = currentMarket;
            _promotionEngine      = promotionEngine;
            _orderRepository      = orderRepository;
            _orderGroupFactory    = orderGroupFactory;
            _lineItemCalculator   = lineItemCalculator;
            _lineItemValidator    = lineItemValidator;
            _placedPriceProcessor = placedPriceProcessor;
            _currentMarketService = currentMarketService;
            _inventoryService     = inventoryService;
            _warehouseRepository  = warehouseRepository;
            _myPriceCalculator    = myPriceCalculator;
        }
 public CartService(
     IProductService productService,
     IPricingService pricingService,
     IOrderGroupFactory orderGroupFactory,
     CustomerContextFacade customerContext,
     IPlacedPriceProcessor placedPriceProcessor,
     IInventoryProcessor inventoryProcessor,
     ILineItemValidator lineItemValidator,
     IOrderRepository orderRepository,
     IPromotionEngine promotionEngine,
     IAddressBookService addressBookService,
     ICurrentMarket currentMarket,
     ICurrencyService currencyService,
     IPromotionService promotionService,
     ILineItemCalculator lineItemCalculator,
     IMarketService marketService)
 {
     _productService       = productService;
     _pricingService       = pricingService;
     _orderGroupFactory    = orderGroupFactory;
     _customerContext      = customerContext;
     _placedPriceProcessor = placedPriceProcessor;
     _inventoryProcessor   = inventoryProcessor;
     _lineItemValidator    = lineItemValidator;
     _promotionEngine      = promotionEngine;
     _orderRepository      = orderRepository;
     _addressBookService   = addressBookService;
     _currentMarket        = currentMarket;
     _currencyService      = currencyService;
     _promotionService     = promotionService;
     _lineItemCalculator   = lineItemCalculator;
     _marketService        = marketService;
 }
예제 #5
0
 public CartService(
     IProductService productService,
     IPricingService pricingService,
     IOrderFactory orderFactory,
     CustomerContextFacade customerContext,
     IPlacedPriceProcessor placedPriceProcessor,
     IInventoryProcessor inventoryProcessor,
     ILineItemValidator lineItemValidator,
     IOrderRepository orderRepository,
     IPromotionEngine promotionEngine,
     IAddressBookService addressBookService,
     ICurrentMarket currentMarket,
     ICurrencyService currencyService)
 {
     _productService = productService;
     _pricingService = pricingService;
     _orderFactory = orderFactory;
     _customerContext = customerContext;
     _placedPriceProcessor = placedPriceProcessor;
     _inventoryProcessor = inventoryProcessor;
     _lineItemValidator = lineItemValidator;
     _promotionEngine = promotionEngine;
     _orderRepository = orderRepository;
     _addressBookService = addressBookService;
     _currentMarket = currentMarket;
     _currencyService = currencyService;
 }
예제 #6
0
 public ShoppingCartValidator(ILineItemValidator lineItemValidator, IPlacedPriceProcessor placedPriceProcessor,
                              IInventoryProcessor inventoryProcessor, CustomerContext customerContext)
 {
     _lineItemValidator    = lineItemValidator;
     _placedPriceProcessor = placedPriceProcessor;
     _customerContext      = customerContext;
     _inventoryProcessor   = inventoryProcessor;
 }
예제 #7
0
 public DefaultKlarnaCartValidator(
     ILineItemValidator lineItemValidator,
     IPlacedPriceProcessor placedPriceProcessor,
     IInventoryProcessor inventoryProcessor,
     CustomerContext customerContext,
     IPromotionEngine promotionEngine)
 {
     _lineItemValidator    = lineItemValidator;
     _placedPriceProcessor = placedPriceProcessor;
     _inventoryProcessor   = inventoryProcessor;
     _customerContext      = customerContext;
     _promotionEngine      = promotionEngine;
 }
예제 #8
0
 public OrdersService(IOrderRepository orderRepository,
                      ICustomerService customerService,
                      IPurchaseOrderFactory purchaseOrderFactory,
                      CustomerContext customerContext,
                      IPlacedPriceProcessor placedPriceProcessor,
                      IPromotionEngine promotionEngine,
                      IOrderGroupFactory orderGroupFactory)
 {
     _orderRepository      = orderRepository;
     _customerService      = customerService;
     _purchaseOrderFactory = purchaseOrderFactory;
     _customerContext      = customerContext;
     _placedPriceProcessor = placedPriceProcessor;
     _promotionEngine      = promotionEngine;
     _orderGroupFactory    = orderGroupFactory;
 }
 public CheckOutController(
     IOrderRepository orderRepository
     , IOrderGroupFactory orderGroupFactory // RoCe: change
     , IOrderGroupCalculator orderGroupCalculator
     , IContentLoader contentLoader
     , ILineItemCalculator lineItemCalculator
     , IPlacedPriceProcessor placedPriceProcessor
     , IInventoryProcessor inventoryProcessor
     , ILineItemValidator lineItemValidator
     , IPromotionEngine promotionEngine
     , ICurrentMarket currentMarket
     , IPaymentProcessor paymentProcessor)
     : base(
         orderRepository, orderGroupFactory, orderGroupCalculator, contentLoader
         , lineItemCalculator, placedPriceProcessor, inventoryProcessor
         , lineItemValidator, promotionEngine, currentMarket, paymentProcessor)
 {
 }
예제 #10
0
 public AbstractOrderRepositoryBenchmarks(
     IOrderRepository orderRepository,
     IOrderGroupFactory orderGroupFactory,
     ILineItemValidator lineItemValidator,
     IPlacedPriceProcessor placedPriceProcessor,
     IInventoryProcessor inventoryProcessor,
     IPromotionEngine promotionEngine,
     IOrderGroupCalculator orderGroupCalculator,
     IPaymentProcessor paymentProcessor)
 {
     _orderRepository      = orderRepository;
     _orderGroupFactory    = orderGroupFactory;
     _lineItemValidator    = lineItemValidator;
     _placedPriceProcessor = placedPriceProcessor;
     _inventoryProcessor   = inventoryProcessor;
     _promotionEngine      = promotionEngine;
     _orderGroupCalculator = orderGroupCalculator;
     _paymentProcessor     = paymentProcessor;
 }
예제 #11
0
        //public static IContentLoader xyz;

        public CartController(
            IOrderRepository orderRepository
            , IOrderGroupFactory orderGroupFactory
            , IOrderGroupCalculator orderGroupCalculator
            , IContentLoader contentLoader
            , ILineItemCalculator lineItemCalculator
            , IPlacedPriceProcessor placedPriceProcessor
            , IInventoryProcessor inventoryProcessor
            , ILineItemValidator lineItemValidator
            , IPromotionEngine promotionEngine
            , ICurrentMarket currentMarket
            , IPaymentProcessor paymentProcessor
            ) : base
                (orderRepository, orderGroupFactory, orderGroupCalculator, contentLoader
                , lineItemCalculator, placedPriceProcessor, inventoryProcessor
                , lineItemValidator, promotionEngine, currentMarket, paymentProcessor) // Should maybe not have the last one here
        {
            _contentLoader2 = contentLoader;
        }
예제 #12
0
 public CartController(IOrderRepository orderRepository
                       , IOrderGroupFactory orderGroupFactory
                       , IOrderGroupCalculator orderGroupCalculator
                       , IContentLoader contentLoader
                       , ILineItemCalculator lineItemCalculator
                       , IPlacedPriceProcessor placedPriceProcessor
                       , IInventoryProcessor inventoryProcessor
                       , ILineItemValidator lineItemValidator
                       , IPromotionEngine promotionEngine)
 {
     _orderRepository      = orderRepository;
     _orderGroupFactory    = orderGroupFactory;
     _orderGroupCalculator = orderGroupCalculator;
     _contentLoader        = contentLoader;
     _promotionEngine      = promotionEngine;
     _lineItemCalculator   = lineItemCalculator;
     _inventoryProcessor   = inventoryProcessor;
     _lineItemValidator    = lineItemValidator;
     _placedPriceProcessor = placedPriceProcessor;
 }
 public CartService(
     IProductService productService,
     IOrderGroupFactory orderGroupFactory,
     IPlacedPriceProcessor placedPriceProcessor,
     IInventoryProcessor inventoryProcessor,
     ILineItemValidator lineItemValidator,
     IOrderRepository orderRepository,
     IPromotionEngine promotionEngine,
     IAddressBookService addressBookService,
     ICurrentMarket currentMarket,
     ICurrencyService currencyService,
     ReferenceConverter referenceConverter,
     IContentLoader contentLoader,
     IRelationRepository relationRepository,
     ShippingService shippingManagerFacade,
     IWarehouseRepository warehouseRepository,
     ILineItemCalculator lineItemCalculator,
     IPromotionService promotionService, IOrganizationService organizationService)
 {
     _productService        = productService;
     _orderGroupFactory     = orderGroupFactory;
     _customerContext       = CustomerContext.Current;
     _placedPriceProcessor  = placedPriceProcessor;
     _inventoryProcessor    = inventoryProcessor;
     _lineItemValidator     = lineItemValidator;
     _promotionEngine       = promotionEngine;
     _orderRepository       = orderRepository;
     _addressBookService    = addressBookService;
     _currentMarket         = currentMarket;
     _currencyService       = currencyService;
     _referenceConverter    = referenceConverter;
     _contentLoader         = contentLoader;
     _relationRepository    = relationRepository;
     _shippingManagerFacade = shippingManagerFacade;
     _warehouseRepository   = warehouseRepository;
     _lineItemCalculator    = lineItemCalculator;
     _promotionService      = promotionService;
     _organizationService   = organizationService;
 }
예제 #14
0
 public ShirtVariationController(
     IContentLoader contentLoader,
     UrlResolver urlResolver,
     AssetUrlResolver assetUrlResolver,
     ThumbnailUrlResolver thumbnailUrlResolver,
     IOrderRepository orderRepository,
     IOrderGroupFactory orderFactory,
     ILineItemValidator lineItemValidator,
     ICurrentMarket currentMarket,
     IInventoryService invService,
     IWarehouseRepository whRep,
     IPlacedPriceProcessor placedPriceProcessor,
     IPromotionEngine promotionEngine)
     : base(contentLoader, urlResolver, assetUrlResolver, thumbnailUrlResolver)
 {
     _orderRepository      = orderRepository;
     _orderFactory         = orderFactory;
     _lineItemValidator    = lineItemValidator;
     _currentMarket        = currentMarket;
     _invService           = invService;
     _whRep                = whRep;
     _placedPriceProcessor = placedPriceProcessor;
     _promotionEngine      = promotionEngine;
 }
예제 #15
0
 public OrderRepositoryBenchmarks(IOrderRepository orderRepository, IOrderGroupFactory orderGroupFactory, ILineItemValidator lineItemValidator, IPlacedPriceProcessor placedPriceProcessor, IInventoryProcessor inventoryProcessor, IPromotionEngine promotionEngine, IOrderGroupCalculator orderGroupCalculator, IPaymentProcessor paymentProcessor)
     : base(orderRepository, orderGroupFactory, lineItemValidator, placedPriceProcessor, inventoryProcessor, promotionEngine, orderGroupCalculator, paymentProcessor)
 {
 }