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;
 }
Esempio n. 2
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;
 }
Esempio n. 3
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;
 }
Esempio n. 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;
 }
Esempio n. 5
0
 public DinteroPaymentGateway(IFeatureSwitch featureSwitch, IInventoryProcessor inventoryProcessor,
                              IOrderRepository orderRepository)
 {
     _featureSwitch      = featureSwitch;
     _inventoryProcessor = inventoryProcessor;
     _orderRepository    = orderRepository;
     _requestsHelper     = new DinteroRequestsHelper();
 }
 public ShoppingCartValidator(ILineItemValidator lineItemValidator, IPlacedPriceProcessor placedPriceProcessor,
                              IInventoryProcessor inventoryProcessor, CustomerContext customerContext)
 {
     _lineItemValidator    = lineItemValidator;
     _placedPriceProcessor = placedPriceProcessor;
     _customerContext      = customerContext;
     _inventoryProcessor   = inventoryProcessor;
 }
 public WarehouseService(
     IInventoryService inventoryService,
     IInventoryProcessor inventoryProcessor,
     IWarehouseRepository warehouseRepository)
 {
     _inventoryService    = inventoryService;
     _inventoryProcessor  = inventoryProcessor;
     _warehouseRepository = warehouseRepository;
 }
 public PayooCartService(
     IFeatureSwitch featureSwitch,
     IInventoryProcessor inventoryProcessor,
     IOrderRepository orderRepository)
 {
     _featureSwitch      = featureSwitch;
     _inventoryProcessor = inventoryProcessor;
     _orderRepository    = orderRepository;
 }
        public AddNewItemViewModel(string connectionString)
        {
            AddItemCommand       = new DelegateCommand(ExecuteAddItemCommand);
            CancelAddItemCommand = new DelegateCommand(ExecuteCancelAddItemCommand);

            _therapeuticClassProcessor = new TherapeuticClassProcessor(connectionString);
            _itemProcessor             = new ItemProcessor(connectionString);
            _inventoryProcessor        = new InventoryProcessor(connectionString);

            LoadTherapeuticClass();
            InitializeValues();
        }
Esempio n. 10
0
        public DIBSPaymentGateway(
            IFeatureSwitch featureSwitch,
            IInventoryProcessor inventoryProcessor,
            IOrderRepository orderRepository,
            LocalizationService localizationService)
        {
            _featureSwitch       = featureSwitch;
            _inventoryProcessor  = inventoryProcessor;
            _orderRepository     = orderRepository;
            _localizationService = localizationService;

            _dibsRequestHelper = new DIBSRequestHelper();
        }
Esempio n. 11
0
 public DefaultKlarnaCartValidator(
     ILineItemValidator lineItemValidator,
     IPlacedPriceProcessor placedPriceProcessor,
     IInventoryProcessor inventoryProcessor,
     CustomerContext customerContext,
     IPromotionEngine promotionEngine)
 {
     _lineItemValidator    = lineItemValidator;
     _placedPriceProcessor = placedPriceProcessor;
     _inventoryProcessor   = inventoryProcessor;
     _customerContext      = customerContext;
     _promotionEngine      = promotionEngine;
 }
Esempio n. 12
0
        public PayPalPaymentGateway(
            IInventoryProcessor inventoryProcessor,
            IOrderNumberGenerator orderNumberGenerator,
            IOrderRepository orderRepository,
            ITaxCalculator taxCalculator,
            PayPalApiHelper paypalApiHelper)
        {
            _inventoryProcessor   = inventoryProcessor;
            _orderNumberGenerator = orderNumberGenerator;
            _orderRepository      = orderRepository;
            _taxCalculator        = taxCalculator;
            _payPalApiHelper      = paypalApiHelper;

            // ReSharper disable once VirtualMemberCallInConstructor
            _paymentMethodConfiguration = new PayPalConfiguration(Settings);
        }
        public PayPalPaymentGateway(
            IFeatureSwitch featureSwitch,
            IInventoryProcessor inventoryProcessor,
            IOrderNumberGenerator orderNumberGenerator,
            IOrderRepository orderRepository,
            IOrderGroupCalculator orderGroupCalculator,
            PayPalAPIHelper paypalAPIHelper)
        {
            _featureSwitch        = featureSwitch;
            _inventoryProcessor   = inventoryProcessor;
            _orderNumberGenerator = orderNumberGenerator;
            _orderRepository      = orderRepository;
            _orderGroupCalculator = orderGroupCalculator;
            _payPalAPIHelper      = paypalAPIHelper;

            _paymentMethodConfiguration = new PayPalConfiguration(Settings);
        }
        public DataCashPaymentGateway(
            IOrderRepository orderRepository,
            IInventoryProcessor inventoryProcessor,
            IOrderNumberGenerator orderNumberGenerator,
            IFeatureSwitch featureSwitch,
            LocalizationService localizationService,
            DataCashConfiguration dataCashConfiguration,
            RequestDocumentCreation requestDocumentCreation)
        {
            _orderRepository      = orderRepository;
            _inventoryProcessor   = inventoryProcessor;
            _orderNumberGenerator = orderNumberGenerator;
            _localizationService  = localizationService;
            _featureSwitch        = featureSwitch;

            _dataCashConfiguration   = dataCashConfiguration;
            _requestDocumentCreation = requestDocumentCreation;
        }
 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)
 {
 }
Esempio n. 16
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;
        }
Esempio n. 17
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;
 }
Esempio n. 18
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;
 }
        public MainWindowViewModel()
        {
            //Initialize commands
            SalesSearchCommand         = new DelegateCommand(ExecuteSalesSearchCommand, CanExecuteSalesSearchCommand);
            ShoppingListAddItemCommand = new DelegateCommand(ExecuteShoppingListAddItemCommand);
            ShoppingListConfirmCommand = new DelegateCommand(ExecuteShoppingListConfirmCommand);
            ShoppingListCancelCommand  = new DelegateCommand(ExecuteShoppingListCancelCommand);
            InventorySearchCommand     = new DelegateCommand(ExecuteInventorySearchCommand);
            AddInventoryItemCommand    = new DelegateCommand(ExecuteAddInventoryItemCommand);
            AddNewItemCommand          = new DelegateCommand(ExecuteAddNewItemCommand);

            //Initialize processors
            _itemProcessor             = new ItemProcessor(_connectionString);
            _inventoryProcessor        = new InventoryProcessor(_connectionString);
            _therapeuticClassProcessor = new TherapeuticClassProcessor(_connectionString);

            //Initialize values
            AddInventoryExpiryDate        = DateTime.Now;
            AddInventoryManufacturingDate = DateTime.Now;
            ShoppingList = new ObservableCollection <Item>();

            LoadAvailableTherapeuticClass();
        }
Esempio n. 21
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)
 {
 }