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;
        }
Example #3
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;
 }
Example #4
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;
 }
 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;
 }
Example #6
0
 public ShirtVariationController(IContentLoader contentLoader, UrlResolver urlResolver,
                                 AssetUrlResolver assetUrlResolver, ThumbnailUrlResolver thumbnailUrlResolver,
                                 IOrderRepository orderRepository, ILineItemValidator lineItemValidator, ICurrentMarket currentMarket) : base(contentLoader, urlResolver, assetUrlResolver, thumbnailUrlResolver)
 {
     _orderRepository   = orderRepository;
     _lineItemValidator = lineItemValidator;
     _currentMarket     = currentMarket;
 }
 public ShoppingCartValidator(ILineItemValidator lineItemValidator, IPlacedPriceProcessor placedPriceProcessor,
                              IInventoryProcessor inventoryProcessor, CustomerContext customerContext)
 {
     _lineItemValidator    = lineItemValidator;
     _placedPriceProcessor = placedPriceProcessor;
     _customerContext      = customerContext;
     _inventoryProcessor   = inventoryProcessor;
 }
 public KlarnaCheckoutController(
     IKlarnaCheckoutService klarnaCheckoutService,
     IOrderRepository orderRepository,
     ILineItemValidator lineItemValidator,
     ICartService cartService,
     CheckoutService checkoutService)
 {
     _klarnaCheckoutService = klarnaCheckoutService;
     _orderRepository       = orderRepository;
     _lineItemValidator     = lineItemValidator;
     _cartService           = cartService;
     _checkoutService       = checkoutService;
 }
Example #9
0
 public DefaultKlarnaCartValidator(
     ILineItemValidator lineItemValidator,
     IPlacedPriceProcessor placedPriceProcessor,
     IInventoryProcessor inventoryProcessor,
     CustomerContext customerContext,
     IPromotionEngine promotionEngine)
 {
     _lineItemValidator    = lineItemValidator;
     _placedPriceProcessor = placedPriceProcessor;
     _inventoryProcessor   = inventoryProcessor;
     _customerContext      = customerContext;
     _promotionEngine      = promotionEngine;
 }
Example #10
0
 public ShirtVariationController(IContentLoader contentLoader,
                                 UrlResolver urlResolver,
                                 AssetUrlResolver assetUrlResolver,
                                 ThumbnailUrlResolver thumbnailUrlResolver,
                                 IOrderRepository orderRepository,
                                 IOrderGroupFactory orderGroupFactory,
                                 ILineItemValidator lineItemValidator, IPromotionEngine promotionEngine) : base(contentLoader, urlResolver, assetUrlResolver, thumbnailUrlResolver)
 {
     _orderRepository   = orderRepository;
     _orderGroupFactory = orderGroupFactory;
     _lineItemValidator = lineItemValidator;
     _promotionEngine   = promotionEngine;
 }
 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)
 {
 }
Example #12
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;
        }
Example #13
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;
 }
Example #14
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;
 }
        // ToDo: (Exewrcise C6)
        public ShirtVariationController(
            IContentLoader contentLoader
            , UrlResolver urlResolver
            , AssetUrlResolver assetUrlResolver
            , ThumbnailUrlResolver thumbnailUrlResolver // use this in node listing instead
            , IOrderRepository orderRepository
            , IOrderGroupFactory orderFactory
            , ILineItemValidator lineItemValidator
            // add for promo-price
            , IPromotionEngine promotionEngine
            , ICurrentMarket currentMarket
            )
            : base(contentLoader, urlResolver, assetUrlResolver, thumbnailUrlResolver)
        {
            _orderRepository   = orderRepository;   // AddToCart & AddToWishList
            _orderFactory      = orderFactory;      // AddToCart
            _lineItemValidator = lineItemValidator; // AddToCart

            // added for promos
            _promotionEngine = promotionEngine;
            _currentMarket   = currentMarket;
        }
Example #17
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;
 }
Example #18
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)
 {
 }