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;
 }
コード例 #2
0
ファイル: CartService.cs プロジェクト: tsolbjor/Quicksilver
 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;
 }
コード例 #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;
 }
コード例 #4
0
ファイル: CartService.cs プロジェクト: adrian18hd/Quicksilver
 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;
 }
コード例 #5
0
 public DinteroPaymentGateway(IFeatureSwitch featureSwitch, IInventoryProcessor inventoryProcessor,
                              IOrderRepository orderRepository)
 {
     _featureSwitch      = featureSwitch;
     _inventoryProcessor = inventoryProcessor;
     _orderRepository    = orderRepository;
     _requestsHelper     = new DinteroRequestsHelper();
 }
コード例 #6
0
 public ShoppingCartValidator(ILineItemValidator lineItemValidator, IPlacedPriceProcessor placedPriceProcessor,
                              IInventoryProcessor inventoryProcessor, CustomerContext customerContext)
 {
     _lineItemValidator    = lineItemValidator;
     _placedPriceProcessor = placedPriceProcessor;
     _customerContext      = customerContext;
     _inventoryProcessor   = inventoryProcessor;
 }
コード例 #7
0
 public WarehouseService(
     IInventoryService inventoryService,
     IInventoryProcessor inventoryProcessor,
     IWarehouseRepository warehouseRepository)
 {
     _inventoryService    = inventoryService;
     _inventoryProcessor  = inventoryProcessor;
     _warehouseRepository = warehouseRepository;
 }
コード例 #8
0
 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();
        }
コード例 #10
0
        public DIBSPaymentGateway(
            IFeatureSwitch featureSwitch,
            IInventoryProcessor inventoryProcessor,
            IOrderRepository orderRepository,
            LocalizationService localizationService)
        {
            _featureSwitch       = featureSwitch;
            _inventoryProcessor  = inventoryProcessor;
            _orderRepository     = orderRepository;
            _localizationService = localizationService;

            _dibsRequestHelper = new DIBSRequestHelper();
        }
コード例 #11
0
 public DefaultKlarnaCartValidator(
     ILineItemValidator lineItemValidator,
     IPlacedPriceProcessor placedPriceProcessor,
     IInventoryProcessor inventoryProcessor,
     CustomerContext customerContext,
     IPromotionEngine promotionEngine)
 {
     _lineItemValidator    = lineItemValidator;
     _placedPriceProcessor = placedPriceProcessor;
     _inventoryProcessor   = inventoryProcessor;
     _customerContext      = customerContext;
     _promotionEngine      = promotionEngine;
 }
コード例 #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);
        }
コード例 #13
0
        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);
        }
コード例 #14
0
        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)
 {
 }
コード例 #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;
        }
コード例 #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;
 }
コード例 #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;
 }
コード例 #19
0
 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();
        }
コード例 #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)
 {
 }