コード例 #1
0
 public ShippingController(
     IShippingService shippingService,
     IShippingMethodService shippingMethodService,
     IPickupPointService pickupPointService,
     IDeliveryDateService deliveryDateService,
     IWarehouseService warehouseService,
     ISettingService settingService,
     ICountryService countryService,
     ITranslationService translationService,
     ILanguageService languageService,
     IStoreService storeService,
     IGroupService groupService,
     IServiceProvider serviceProvider,
     IWorkContext workContext)
 {
     _shippingService       = shippingService;
     _shippingMethodService = shippingMethodService;
     _pickupPointService    = pickupPointService;
     _deliveryDateService   = deliveryDateService;
     _warehouseService      = warehouseService;
     _settingService        = settingService;
     _countryService        = countryService;
     _translationService    = translationService;
     _languageService       = languageService;
     _storeService          = storeService;
     _groupService          = groupService;
     _serviceProvider       = serviceProvider;
     _workContext           = workContext;
 }
コード例 #2
0
 public OrderRepository(IOrderService orderService, IAccountService accountService, IShippingMethodService shippingMethodService, ISessionStateService sessionStateService)
 {
     _orderService = orderService;
     _accountService = accountService;
     _shippingMethodService = shippingMethodService;
     _sessionStateService = sessionStateService;
 }
コード例 #3
0
 public ShippingByWeightController(
     IWarehouseService warehouseService,
     IShippingMethodService shippingMethodService,
     IStoreService storeService,
     ICountryService countryService,
     IStateProvinceService stateProvinceService,
     ShippingByWeightSettings shippingByWeightSettings,
     IShippingByWeightService shippingByWeightService,
     ISettingService settingService,
     ILocalizationService localizationService,
     ICurrencyService currencyService,
     CurrencySettings currencySettings,
     IMeasureService measureService,
     MeasureSettings measureSettings)
 {
     _warehouseService         = warehouseService;
     _shippingMethodService    = shippingMethodService;
     _storeService             = storeService;
     _countryService           = countryService;
     _stateProvinceService     = stateProvinceService;
     _shippingByWeightSettings = shippingByWeightSettings;
     _shippingByWeightService  = shippingByWeightService;
     _settingService           = settingService;
     _localizationService      = localizationService;
     _currencyService          = currencyService;
     _currencySettings         = currencySettings;
     _measureService           = measureService;
     _measureSettings          = measureSettings;
 }
コード例 #4
0
 public ShippingByWeightController(
     IWarehouseService warehouseService,
     IShippingMethodService shippingMethodService,
     IStoreService storeService,
     ICountryService countryService,
     ByWeightShippingSettings shippingByWeightSettings,
     IShippingByWeightService shippingByWeightService,
     ISettingService settingService,
     ITranslationService translationService,
     ICurrencyService currencyService,
     CurrencySettings currencySettings,
     IMeasureService measureService,
     MeasureSettings measureSettings)
 {
     _warehouseService         = warehouseService;
     _shippingMethodService    = shippingMethodService;
     _storeService             = storeService;
     _countryService           = countryService;
     _shippingByWeightSettings = shippingByWeightSettings;
     _shippingByWeightService  = shippingByWeightService;
     _settingService           = settingService;
     _translationService       = translationService;
     _currencyService          = currencyService;
     _currencySettings         = currencySettings;
     _measureService           = measureService;
     _measureSettings          = measureSettings;
 }
コード例 #5
0
 public ShippingController(
     IShippingService shippingService,
     IShippingMethodService shippingMethodService,
     IPickupPointService pickupPointService,
     IDeliveryDateService deliveryDateService,
     IWarehouseService warehouseService,
     ShippingSettings shippingSettings,
     ISettingService settingService,
     IAddressService addressService,
     ICountryService countryService,
     IStateProvinceService stateProvinceService,
     ILocalizationService localizationService,
     ILanguageService languageService,
     IPluginFinder pluginFinder,
     IWebHelper webHelper,
     IStoreService storeService,
     ICustomerService customerService)
 {
     _shippingService       = shippingService;
     _shippingMethodService = shippingMethodService;
     _pickupPointService    = pickupPointService;
     _deliveryDateService   = deliveryDateService;
     _warehouseService      = warehouseService;
     _shippingSettings      = shippingSettings;
     _settingService        = settingService;
     _addressService        = addressService;
     _countryService        = countryService;
     _stateProvinceService  = stateProvinceService;
     _localizationService   = localizationService;
     _languageService       = languageService;
     _pluginFinder          = pluginFinder;
     _webHelper             = webHelper;
     _storeService          = storeService;
     _customerService       = customerService;
 }
コード例 #6
0
 public OrderRepository(IOrderService orderService, IAccountService accountService, IShippingMethodService shippingMethodService, ISuspensionManagerState suspensionManagerState)
 {
     _orderService = orderService;
     _accountService = accountService;
     _shippingMethodService = shippingMethodService;
     _suspensionManagerState = suspensionManagerState;
 }
コード例 #7
0
 public void Init()
 {
     _repositoryMock = new Mock <IRepository <ShippingMethod> >();
     _mediatorMock   = new Mock <IMediator>();
     _cacheMock      = new Mock <ICacheBase>();
     _service        = new ShippingMethodService(_repositoryMock.Object, _mediatorMock.Object, _cacheMock.Object);
 }
コード例 #8
0
        public CheckoutSummaryPageViewModel(INavigationService navigationService,
                                            IOrderService orderService,
                                            IOrderRepository orderRepository,
                                            IShippingMethodService shippingMethodService,
                                            ICheckoutDataRepository checkoutDataRepository,
                                            IShoppingCartRepository shoppingCartRepository,
                                            IAccountService accountService,
                                            IResourceLoader resourceLoader,
                                            IAlertMessageService alertMessageService,
                                            ISignInUserControlViewModel signInUserControlViewModel)
        {
            _navigationService          = navigationService;
            _orderService               = orderService;
            _orderRepository            = orderRepository;
            _shippingMethodService      = shippingMethodService;
            _checkoutDataRepository     = checkoutDataRepository;
            _shoppingCartRepository     = shoppingCartRepository;
            _resourceLoader             = resourceLoader;
            _accountService             = accountService;
            _alertMessageService        = alertMessageService;
            _signInUserControlViewModel = signInUserControlViewModel;

            SubmitCommand = DelegateCommand.FromAsyncHandler(SubmitAsync, CanSubmit);

            EditCheckoutDataCommand   = new DelegateCommand(EditCheckoutData);
            SelectCheckoutDataCommand = new DelegateCommand(async() => await SelectCheckoutDataAsync());
            AddCheckoutDataCommand    = new DelegateCommand(AddCheckoutData);
        }
 public OrderRepository(IOrderService orderService, IAccountService accountService, IShippingMethodService shippingMethodService, ISessionStateService sessionStateService)
 {
     _orderService          = orderService;
     _accountService        = accountService;
     _shippingMethodService = shippingMethodService;
     _sessionStateService   = sessionStateService;
 }
コード例 #10
0
 public ShippingZoneService(DataContext db, ICountryService countryService, IRegionService regionService, IShippingMethodService shippingMethodService)
 {
     this.db = db;
     this.countryService = countryService;
     this.regionService = regionService;
     this.shippingMethodService = shippingMethodService;
 }
コード例 #11
0
        public CheckoutSummaryPageViewModel(INavigationService navigationService,
            IOrderService orderService,
            IOrderRepository orderRepository,
            IShippingMethodService shippingMethodService,
            ICheckoutDataRepository checkoutDataRepository,
            IShoppingCartRepository shoppingCartRepository,
            IAccountService accountService,
            IResourceLoader resourceLoader,
            IAlertMessageService alertMessageService,
            ISignInUserControlViewModel signInUserControlViewModel)
        {
            _navigationService = navigationService;
            _orderService = orderService;
            _orderRepository = orderRepository;
            _shippingMethodService = shippingMethodService;
            _checkoutDataRepository = checkoutDataRepository;
            _shoppingCartRepository = shoppingCartRepository;
            _resourceLoader = resourceLoader;
            _accountService = accountService;
            _alertMessageService = alertMessageService;
            _signInUserControlViewModel = signInUserControlViewModel;

            SubmitCommand = DelegateCommand.FromAsyncHandler(SubmitAsync, CanSubmit);

            EditCheckoutDataCommand = new DelegateCommand(EditCheckoutData);
            SelectCheckoutDataCommand = new DelegateCommand(async () => await SelectCheckoutDataAsync());
            AddCheckoutDataCommand = new DelegateCommand(AddCheckoutData);
        }
コード例 #12
0
ファイル: ShippingZoneService.cs プロジェクト: tuaasn/Cart42
 public ShippingZoneService(DataContext db, ICountryService countryService, IRegionService regionService, IShippingMethodService shippingMethodService)
 {
     this.db                    = db;
     this.countryService        = countryService;
     this.regionService         = regionService;
     this.shippingMethodService = shippingMethodService;
 }
コード例 #13
0
 public ShippingMethodController(IShippingMethodService shippingMethodService, 
     IShippingZoneService shippingZoneService, ISettingService settingService)
 {
     this.shippingMethodService = shippingMethodService;
     this.shippingZoneService = shippingZoneService;
     this.settingService = settingService;
 }
コード例 #14
0
 public ShippingMethodController(IShippingMethodService shippingMethodService,
                                 IShippingZoneService shippingZoneService, ISettingService settingService)
 {
     this.shippingMethodService = shippingMethodService;
     this.shippingZoneService   = shippingZoneService;
     this.settingService        = settingService;
 }
コード例 #15
0
 public ShippingFixedRateController(
     IShippingMethodService shippingMethodService,
     ISettingService settingService,
     IPermissionService permissionService)
 {
     _shippingMethodService = shippingMethodService;
     _settingService        = settingService;
     _permissionService     = permissionService;
 }
コード例 #16
0
        public ShippingMethodController(IShippingMethodService paymentMethodService, IImageService imageService
                                        , ICacheManager cacheManager
                                        , ILocalizedPropertyService localizedPropertyService
                                        , ILanguageService languageService, ISettingService settingService)
        {
            _paymentMethodService     = paymentMethodService;
            _languageService          = languageService;
            _localizedPropertyService = localizedPropertyService;

            //Clear cache
            cacheManager.RemoveByPattern(CacheShippingMethod);
        }
コード例 #17
0
 public FixedRateShippingComputationMethod(ISettingService settingService,
                                           IShippingMethodService shippingMethodService,
                                           IWebHelper webHelper,
                                           ILocalizationService localizationService,
                                           ILanguageService languageService,
                                           IWorkContext workContext)
 {
     _settingService        = settingService;
     _shippingMethodService = shippingMethodService;
     _webHelper             = webHelper;
     _localizationService   = localizationService;
     _languageService       = languageService;
     _workContext           = workContext;
 }
コード例 #18
0
 public FixedRateShippingProvider(
     IShippingMethodService shippingMethodService,
     IWorkContext workContext,
     ISettingService settingService,
     ICurrencyService currencyService,
     ShippingFixedRateSettings shippingFixedRateSettings
     )
 {
     _shippingMethodService     = shippingMethodService;
     _workContext               = workContext;
     _settingService            = settingService;
     _currencyService           = currencyService;
     _shippingFixedRateSettings = shippingFixedRateSettings;
 }
コード例 #19
0
 public PaymentController(IPaymentService paymentService,
                          ISettingService settingService,
                          ICountryService countryService,
                          IGroupService groupService,
                          IShippingMethodService shippingMethodService,
                          ITranslationService translationService,
                          IServiceProvider serviceProvider,
                          IWorkContext workContext)
 {
     _paymentService        = paymentService;
     _settingService        = settingService;
     _countryService        = countryService;
     _groupService          = groupService;
     _shippingMethodService = shippingMethodService;
     _translationService    = translationService;
     _serviceProvider       = serviceProvider;
     _workContext           = workContext;
 }
コード例 #20
0
 public PaymentController(IPaymentService paymentService,
                          PaymentSettings paymentSettings,
                          ISettingService settingService,
                          ICountryService countryService,
                          ICustomerService customerService,
                          IShippingMethodService shippingMethodService,
                          IPluginFinder pluginFinder,
                          IWebHelper webHelper,
                          ILocalizationService localizationService)
 {
     _paymentService        = paymentService;
     _paymentSettings       = paymentSettings;
     _settingService        = settingService;
     _countryService        = countryService;
     _customerService       = customerService;
     _shippingMethodService = shippingMethodService;
     _pluginFinder          = pluginFinder;
     _webHelper             = webHelper;
     _localizationService   = localizationService;
 }
コード例 #21
0
 public CheckoutController(IWorkContext workContext, ICustomerService customerService,
                           IAddressService addressService, IPostService postService
                           , IShoppingCartItemService shoppingCartItemService
                           , IPaymentMethodService paymentMethodService
                           , IGenericAttributeService genericAttributeService
                           , IShippingMethodService shippingMethodService
                           , IOrderService orderService
                           , IOrderProcessingService orderProcessingService)
 {
     _workContext             = workContext;
     _customerService         = customerService;
     _addressService          = addressService;
     _postService             = postService;
     _shoppingCartItemService = shoppingCartItemService;
     _paymentMethodService    = paymentMethodService;
     _genericAttributeService = genericAttributeService;
     _shippingMethodService   = shippingMethodService;
     _orderService            = orderService;
     _orderProcessingService  = orderProcessingService;
 }
コード例 #22
0
 public ByWeightShippingCalcPlugin(
     IShippingMethodService shippingMethodService,
     IWorkContext workContext,
     ITranslationService translationService,
     IProductService productService,
     IServiceProvider serviceProvider,
     IProductAttributeParser productAttributeParser,
     ICheckoutAttributeParser checkoutAttributeParser,
     ICurrencyService currencyService,
     ByWeightShippingSettings byWeightShippingSettings)
 {
     _shippingMethodService    = shippingMethodService;
     _workContext              = workContext;
     _translationService       = translationService;
     _productService           = productService;
     _serviceProvider          = serviceProvider;
     _productAttributeParser   = productAttributeParser;
     _checkoutAttributeParser  = checkoutAttributeParser;
     _currencyService          = currencyService;
     _byWeightShippingSettings = byWeightShippingSettings;
 }
コード例 #23
0
 public ByWeightShippingComputationMethod(IShippingService shippingService,
                                          IShippingMethodService shippingMethodService,
                                          IStoreContext storeContext,
                                          IPriceCalculationService priceCalculationService,
                                          ISettingService settingService,
                                          IWebHelper webHelper,
                                          IWorkContext workContext,
                                          ILocalizationService localizationService,
                                          ILanguageService languageService,
                                          IServiceProvider serviceProvider)
 {
     _shippingService         = shippingService;
     _shippingMethodService   = shippingMethodService;
     _storeContext            = storeContext;
     _priceCalculationService = priceCalculationService;
     _settingService          = settingService;
     _webHelper           = webHelper;
     _workContext         = workContext;
     _localizationService = localizationService;
     _languageService     = languageService;
     _serviceProvider     = serviceProvider;
 }
コード例 #24
0
 public ShippingMethodsController(IShippingMethodService shippingMethodService, IMapper mapper)
 {
     _mapper = mapper;
     _shippingMethodService = shippingMethodService;
 }
コード例 #25
0
 public SeedController(IAuthService authService, IShippingMethodService shippingMethodService, IPaymentMethodService paymentMethodService)
 {
     _authService           = authService;
     _paymentMethodService  = paymentMethodService;
     _shippingMethodService = shippingMethodService;
 }
コード例 #26
0
ファイル: ConfigController.cs プロジェクト: Wipcore/Ecommerce
 public ConfigController(IShippingMethodService service)
 {
     _service = service;
 }