public ShipmentDeletedEventHandler( IOrderService orderService, IShipmentService shipmentService, IProductService productService, IInventoryManageService inventoryManageService) { _orderService = orderService; _shipmentService = shipmentService; _productService = productService; _inventoryManageService = inventoryManageService; }
public InsertOrderItemCommandHandler( IMediator mediator, IOrderService orderService, IGiftVoucherService giftVoucherService, IInventoryManageService inventoryManageService) { _mediator = mediator; _orderService = orderService; _giftVoucherService = giftVoucherService; _inventoryManageService = inventoryManageService; }
public UpdateProductStockCommandHandler( IProductService productService, IInventoryManageService inventoryManageService, ICustomerActivityService customerActivityService, ILocalizationService localizationService, IBackInStockSubscriptionService backInStockSubscriptionService) { _productService = productService; _inventoryManageService = inventoryManageService; _customerActivityService = customerActivityService; _localizationService = localizationService; _backInStockSubscriptionService = backInStockSubscriptionService; }
public UpdateOrderItemCommandHandler( IMediator mediator, IOrderService orderService, IShipmentService shipmentService, IProductService productService, IInventoryManageService inventoryManageService) { _mediator = mediator; _orderService = orderService; _shipmentService = shipmentService; _productService = productService; _inventoryManageService = inventoryManageService; }
public ShipCommandHandler( IMediator mediator, IOrderService orderService, IShipmentService shipmentService, IProductService productService, IInventoryManageService inventoryManageService, IWorkflowMessageService workflowMessageService) { _mediator = mediator; _orderService = orderService; _shipmentService = shipmentService; _productService = productService; _inventoryManageService = inventoryManageService; _workflowMessageService = workflowMessageService; }
public UpdateProductStockCommandHandler( IProductService productService, IInventoryManageService inventoryManageService, IStockQuantityService stockQuantityService, ICustomerActivityService customerActivityService, ITranslationService translationService, IOutOfStockSubscriptionService outOfStockSubscriptionService) { _productService = productService; _inventoryManageService = inventoryManageService; _stockQuantityService = stockQuantityService; _customerActivityService = customerActivityService; _translationService = translationService; _outOfStockSubscriptionService = outOfStockSubscriptionService; }
public CancelOrderCommandHandler( IMediator mediator, IOrderService orderService, IShipmentService shipmentService, IProductService productService, IInventoryManageService inventoryManageService, IProductReservationService productReservationService, IAuctionService auctionService, IDiscountService discountService) { _mediator = mediator; _orderService = orderService; _shipmentService = shipmentService; _productService = productService; _inventoryManageService = inventoryManageService; _productReservationService = productReservationService; _auctionService = auctionService; _discountService = discountService; }
public ShipmentController( IShipmentViewModelService shipmentViewModelService, IOrderService orderService, ILocalizationService localizationService, IWorkContext workContext, IPdfService pdfService, IProductService productService, IInventoryManageService inventoryManageService, IShipmentService shipmentService, IDateTimeHelper dateTimeHelper, IMediator mediator) { _shipmentViewModelService = shipmentViewModelService; _orderService = orderService; _localizationService = localizationService; _workContext = workContext; _pdfService = pdfService; _productService = productService; _inventoryManageService = inventoryManageService; _shipmentService = shipmentService; _dateTimeHelper = dateTimeHelper; _mediator = mediator; }
public void TestInitialize() { _workContext = null; _store = new Store { Id = "1" }; var tempStoreContext = new Mock <IStoreContext>(); { tempStoreContext.Setup(x => x.CurrentStore).Returns(_store); _storeContext = tempStoreContext.Object; } var pluginFinder = new PluginFinder(_serviceProvider); _shoppingCartSettings = new ShoppingCartSettings(); _catalogSettings = new CatalogSettings(); var tempEventPublisher = new Mock <IMediator>(); { //tempEventPublisher.Setup(x => x.PublishAsync(It.IsAny<object>())); _eventPublisher = tempEventPublisher.Object; } var cacheManager = new TestMemoryCacheManager(new Mock <IMemoryCache>().Object, _eventPublisher); _warehouseService = new Mock <IWarehouseService>().Object; _productService = new Mock <IProductService>().Object; _inventoryManageService = new Mock <IInventoryManageService>().Object; //price calculation service _discountService = new Mock <IDiscountService>().Object; _categoryService = new Mock <ICategoryService>().Object; _manufacturerService = new Mock <IManufacturerService>().Object; _customerService = new Mock <ICustomerService>().Object; _customerProductService = new Mock <ICustomerProductService>().Object; _productReservationService = new Mock <IProductReservationService>().Object; _currencyService = new Mock <ICurrencyService>().Object; _auctionService = new Mock <IAuctionService>().Object; _serviceProvider = new Mock <IServiceProvider>().Object; _stateProvinceService = new Mock <IStateProvinceService>().Object; _productAttributeParser = new Mock <IProductAttributeParser>().Object; _priceCalcService = new PriceCalculationService(_workContext, _storeContext, _discountService, _categoryService, _manufacturerService, _productAttributeParser, _productService, _customerProductService, _vendorService, _currencyService, _shoppingCartSettings, _catalogSettings); _localizationService = new Mock <ILocalizationService>().Object; //shipping _shippingSettings = new ShippingSettings(); _shippingSettings.ActiveShippingRateComputationMethodSystemNames = new List <string>(); _shippingSettings.ActiveShippingRateComputationMethodSystemNames.Add("FixedRateTestShippingRateComputationMethod"); _shippingMethodRepository = new Mock <IRepository <ShippingMethod> >().Object; _deliveryDateRepository = new Mock <IRepository <DeliveryDate> >().Object; _warehouseRepository = new Mock <IRepository <Warehouse> >().Object; _logger = new NullLogger(); _shippingService = new ShippingService(_warehouseService, _logger, _productService, _productAttributeParser, _checkoutAttributeParser, _localizationService, _addressService, _countryService, _stateProvinceService, pluginFinder, _currencyService, _shoppingCartSettings, _shippingSettings); _shipmentService = new Mock <IShipmentService>().Object; tempPaymentService = new Mock <IPaymentService>(); { _paymentService = tempPaymentService.Object; } _checkoutAttributeParser = new Mock <ICheckoutAttributeParser>().Object; _giftCardService = new Mock <IGiftCardService>().Object; _genericAttributeService = new Mock <IGenericAttributeService>().Object; _geoLookupService = new Mock <IGeoLookupService>().Object; _countryService = new Mock <ICountryService>().Object; _customerSettings = new CustomerSettings(); _addressSettings = new AddressSettings(); //tax _taxSettings = new TaxSettings { ShippingIsTaxable = true, PaymentMethodAdditionalFeeIsTaxable = true, DefaultTaxAddressId = "10" }; var tempAddressService = new Mock <IAddressService>(); { tempAddressService.Setup(x => x.GetAddressByIdSettings(_taxSettings.DefaultTaxAddressId)) .ReturnsAsync(new Address { Id = _taxSettings.DefaultTaxAddressId }); _addressService = tempAddressService.Object; } _taxService = new TaxService(_addressService, _workContext, pluginFinder, _geoLookupService, _countryService, _logger, _taxSettings, _customerSettings, _addressSettings); _rewardPointsSettings = new RewardPointsSettings(); _orderTotalCalcService = new OrderTotalCalculationService(_workContext, _storeContext, _priceCalcService, _taxService, _shippingService, _paymentService, _checkoutAttributeParser, _discountService, _giftCardService, null, _productService, _currencyService, _taxSettings, _rewardPointsSettings, _shippingSettings, _shoppingCartSettings, _catalogSettings); _orderService = new Mock <IOrderService>().Object; _webHelper = new Mock <IWebHelper>().Object; _languageService = new Mock <ILanguageService>().Object; _priceFormatter = new Mock <IPriceFormatter>().Object; _productAttributeFormatter = new Mock <IProductAttributeFormatter>().Object; _shoppingCartService = new Mock <IShoppingCartService>().Object; _checkoutAttributeFormatter = new Mock <ICheckoutAttributeFormatter>().Object; _encryptionService = new Mock <IEncryptionService>().Object; _workflowMessageService = new Mock <IWorkflowMessageService>().Object; _customerActivityService = new Mock <ICustomerActivityService>().Object; _currencyService = new Mock <ICurrencyService>().Object; _affiliateService = new Mock <IAffiliateService>().Object; _vendorService = new Mock <IVendorService>().Object; _pdfService = new Mock <IPdfService>().Object; _paymentSettings = new PaymentSettings { ActivePaymentMethodSystemNames = new List <string> { "Payments.TestMethod" } }; _orderSettings = new OrderSettings(); _localizationSettings = new LocalizationSettings(); ICustomerActionEventService tempICustomerActionEventService = new Mock <ICustomerActionEventService>().Object; _orderProcessingService = new OrderProcessingService(_orderService, _paymentService, _logger, _workflowMessageService, _eventPublisher, _localizationSettings); }