Пример #1
0
 public AdvisorViewController(IUserService userService, ILogger logger, IGroupService groupService, IAffiliateService affiliateService, ICmsService cmsService)
     : base(userService, logger)
 {
     _groupService     = groupService;
     _affiliateService = affiliateService;
     _cmsService       = cmsService;
 }
 public MessageService(CommonSettings commonSettings,
                       EmailAccountSettings emailAccountSettings,
                       IAffiliateService affiliateService,
                       ICustomerService customerService,
                       IEmailAccountService emailAccountService,
                       IEventPublisher eventPublisher,
                       ILanguageService languageService,
                       ILocalizationService localizationService,
                       IMessageTemplateService messageTemplateService,
                       IMessageTokenProvider messageTokenProvider,
                       IQueuedEmailService queuedEmailService,
                       IStoreContext storeContext,
                       IStoreService storeService,
                       ITokenizer tokenizer) : base(commonSettings, emailAccountSettings, affiliateService, customerService, emailAccountService, eventPublisher, languageService, localizationService, messageTemplateService, messageTokenProvider, queuedEmailService, storeContext, storeService, tokenizer)
 {
     this._commonSettings         = commonSettings;
     this._emailAccountSettings   = emailAccountSettings;
     this._affiliateService       = affiliateService;
     this._customerService        = customerService;
     this._emailAccountService    = emailAccountService;
     this._eventPublisher         = eventPublisher;
     this._languageService        = languageService;
     this._localizationService    = localizationService;
     this._messageTemplateService = messageTemplateService;
     this._messageTokenProvider   = messageTokenProvider;
     this._queuedEmailService     = queuedEmailService;
     this._storeContext           = storeContext;
     this._storeService           = storeService;
     this._tokenizer = tokenizer;
 }
Пример #3
0
 public CustomOrderProcessingService(
     IPluginFinder pluginFinder,
     IOrderService orderService, IWebHelper webHelper, ILocalizationService localizationService,
     ILanguageService languageService, IProductService productService, IPaymentService paymentService,
     ILogger logger, IOrderTotalCalculationService orderTotalCalculationService,
     IPriceCalculationService priceCalculationService, IPriceFormatter priceFormatter,
     IProductAttributeParser productAttributeParser, IProductAttributeFormatter productAttributeFormatter,
     IGiftCardService giftCardService, IShoppingCartService shoppingCartService,
     ICheckoutAttributeFormatter checkoutAttributeFormatter, IShippingService shippingService,
     IShipmentService shipmentService, ITaxService taxService, ICustomerService customerService,
     IDiscountService discountService, IEncryptionService encryptionService, IWorkContext workContext,
     IWorkflowMessageService workflowMessageService, IVendorService vendorService,
     ICustomerActivityService customerActivityService, ICurrencyService currencyService,
     IAffiliateService affiliateService, IEventPublisher eventPublisher, IPdfService pdfService,
     IRewardPointService rewardPointService, IGenericAttributeService genericAttributeService,
     ICountryService countryService, ShippingSettings shippingSettings, PaymentSettings paymentSettings,
     RewardPointsSettings rewardPointsSettings, OrderSettings orderSettings, TaxSettings taxSettings,
     LocalizationSettings localizationSettings, CurrencySettings currencySettings) :
     base(orderService, webHelper, localizationService, languageService, productService, paymentService, logger,
          orderTotalCalculationService, priceCalculationService, priceFormatter, productAttributeParser,
          productAttributeFormatter, giftCardService, shoppingCartService, checkoutAttributeFormatter,
          shippingService, shipmentService, taxService, customerService, discountService, encryptionService,
          workContext, workflowMessageService, vendorService, customerActivityService, currencyService,
          affiliateService, eventPublisher, pdfService, rewardPointService, genericAttributeService, countryService,
          shippingSettings, paymentSettings, rewardPointsSettings, orderSettings, taxSettings, localizationSettings, currencySettings)
 {
     _pluginFinder = pluginFinder;
 }
Пример #4
0
 public ProfileController(
     IHostingEnvironment hostingEnvironment,
     ILangService langService,
     IMapper mapper,
     IViewRenderService viewRenderService,
     IUnitOfWorkAsync unitOfWork,
     ISettingService settingService,
     ISysUserService sysUserService,
     IAffiliateService affiliateService,
     ICoinTransactionService coinTransactionService,
     ILotteryHistoryService lotteryHistoryService,
     IDataContextAsync dataContextAsync,
     ITemplateService templateService,
     IAgencyService agencyService)
 {
     this._hostingEnvironment     = hostingEnvironment;
     this._langService            = langService;
     this._mapper                 = mapper;
     this._viewRenderService      = viewRenderService;
     this._settingService         = settingService;
     this._coinTransactionService = coinTransactionService;
     this._sysUserService         = sysUserService;
     this._affiliateService       = affiliateService;
     this._unitOfWork             = unitOfWork;
     this._templateService        = templateService;
     this._dataContextAsync       = dataContextAsync;
     this._lotteryHistoryService  = lotteryHistoryService;
     this._agencyService          = agencyService;
 }
		/// <summary>
		/// ctor the Mighty
		/// </summary>
		public IngredientController(IRecipeDataService recipeDataService, IIngredientCategorizer ingredientCategorizer,
			IAffiliateService affiliateService)
		{
			this.RecipeDataService = recipeDataService;
			this.IngredientCategorizer = ingredientCategorizer;
			this.AffiliateService = affiliateService;
		}
Пример #6
0
 public CustomerImporter(
     IRepository <Customer> customerRepository,
     IRepository <CustomerRole> customerRoleRepository,
     ICommonServices services,
     ICustomerService customerService,
     IGenericAttributeService genericAttributeService,
     IMediaService mediaService,
     IAffiliateService affiliateService,
     ICountryService countryService,
     IStateProvinceService stateProvinceService,
     FileDownloadManager fileDownloadManager,
     CustomerSettings customerSettings,
     DateTimeSettings dateTimeSettings,
     ForumSettings forumSettings,
     TaxSettings taxSettings,
     PrivacySettings privacySettings)
 {
     _customerRepository     = customerRepository;
     _customerRoleRepository = customerRoleRepository;
     _mediaService           = mediaService;
     _services                = services;
     _customerService         = customerService;
     _genericAttributeService = genericAttributeService;
     _affiliateService        = affiliateService;
     _countryService          = countryService;
     _stateProvinceService    = stateProvinceService;
     _fileDownloadManager     = fileDownloadManager;
     _customerSettings        = customerSettings;
     _dateTimeSettings        = dateTimeSettings;
     _forumSettings           = forumSettings;
     _taxSettings             = taxSettings;
     _privacySettings         = privacySettings;
 }
Пример #7
0
 public ReportsController(IUserService userService, ILogger logger, IReportService reportService, IGroupService groupService, IAffiliateService affiliateService)
     : base(userService, logger)
 {
     _reportService    = reportService;
     _groupService     = groupService;
     _affiliateService = affiliateService;
 }
Пример #8
0
 /// <summary>
 /// ctor the Mighty
 /// </summary>
 public IngredientController(IRecipeDataService recipeDataService, IIngredientCategorizer ingredientCategorizer,
                             IAffiliateService affiliateService)
 {
     this.RecipeDataService     = recipeDataService;
     this.IngredientCategorizer = ingredientCategorizer;
     this.AffiliateService      = affiliateService;
 }
 public AffiliateController(ILocalizationService localizationService,
                            IAffiliateService affiliateService, IAffiliateViewModelService affiliateViewModelService)
 {
     _localizationService       = localizationService;
     _affiliateService          = affiliateService;
     _affiliateViewModelService = affiliateViewModelService;
 }
 public AffiliateController(
     IAffiliateService affiliateService,
     IAffiliateUserService affiliateUserService,
     ILoggerFactory loggerProvider,
     IDynamicMapper <AffiliateDynamic, Affiliate> mapper,
     ICsvExportService <AffiliateOrderListItemModel, AffiliateOrderListItemModelCsvMap> csvExportAffiliateOrderListItemService,
     ICsvExportService <AffiliateListItemModel, AffiliateListItemModelCsvMap> affiliateListItemModelСSVExportService,
     IOrderService orderService,
     ICountryService countryService,
     ISettingService settingService,
     IOptions <AppOptions> appOptions,
     IObjectHistoryLogService objectHistoryLogService,
     ExtendedUserManager userManager,
     ReferenceData referenceData,
     AppSettings appSettings,
     ICacheProvider cache)
 {
     _affiliateService     = affiliateService;
     _affiliateUserService = affiliateUserService;
     _mapper = mapper;
     _objectHistoryLogService = objectHistoryLogService;
     _userManager             = userManager;
     _referenceData           = referenceData;
     _appSettings             = appSettings;
     _csvExportAffiliateOrderListItemService = csvExportAffiliateOrderListItemService;
     _affiliateListItemModelСSVExportService = affiliateListItemModelСSVExportService;
     _orderService   = orderService;
     _countryService = countryService;
     _settingService = settingService;
     _appOptions     = appOptions;
     _cache          = cache;
     logger          = loggerProvider.CreateLogger <AffiliateController>();
 }
Пример #11
0
 public void TestInitialize()
 {
     _affiliateRepository = new Mock <IRepository <Affiliate> >();
     _orderRepository     = new Mock <IRepository <Order> >();
     _mediatorMock        = new Mock <IMediator>();
     _affiliateService    = new AffiliateService(_affiliateRepository.Object, _orderRepository.Object, _mediatorMock.Object);
 }
Пример #12
0
 public CustomerImporter(
     IRepository <Customer> customerRepository,
     IRepository <CustomerRole> customerRoleRepository,
     IRepository <Picture> pictureRepository,
     ICommonServices services,
     IGenericAttributeService genericAttributeService,
     IPictureService pictureService,
     IAffiliateService affiliateService,
     ICountryService countryService,
     IStateProvinceService stateProvinceService,
     FileDownloadManager fileDownloadManager,
     CustomerSettings customerSettings,
     DateTimeSettings dateTimeSettings,
     ForumSettings forumSettings)
 {
     _customerRepository     = customerRepository;
     _customerRoleRepository = customerRoleRepository;
     _pictureRepository      = pictureRepository;
     _services = services;
     _genericAttributeService = genericAttributeService;
     _pictureService          = pictureService;
     _affiliateService        = affiliateService;
     _countryService          = countryService;
     _stateProvinceService    = stateProvinceService;
     _fileDownloadManager     = fileDownloadManager;
     _customerSettings        = customerSettings;
     _dateTimeSettings        = dateTimeSettings;
     _forumSettings           = forumSettings;
 }
Пример #13
0
 public CheckAffiliateFilter(IAffiliateService affiliateService,
                             ICustomerService customerService,
                             IWorkContext workContext)
 {
     this._affiliateService = affiliateService;
     this._customerService  = customerService;
     this._workContext      = workContext;
 }
Пример #14
0
 public AffiliateFilter(IAffiliateService affiliateService,
                        ICustomerService customerService,
                        IWorkContext workContext)
 {
     _affiliateService = affiliateService;
     _customerService  = customerService;
     _workContext      = workContext;
 }
Пример #15
0
        public AuthController(IUserService userService, IAffiliateService affiliateService, ICmsService cmsService, ILogger logger)
        {
            _cmsService       = cmsService;
            _userService      = userService;
            _affiliateService = affiliateService;
            _logger           = logger;

            SamlHelper.CheckConfiguration();
        }
 public BonusProcessor(TimeSpan period, TimeSpan periodOffset, IAccrualPeriodRepository accrualPeriodRepository, IAccrualPeriodProcesor periodProcessor, IAffiliateService affiliateService, ILog logger)
 {
     _accrualPeriodRepository = accrualPeriodRepository;
     _periodOffset            = periodOffset;
     _periodProcessor         = periodProcessor;
     _affiliateService        = affiliateService;
     _logger = logger;
     _period = period;
 }
 public UserController(
     IUserService userService,
     IRoleService roleService,
     IAffiliateService <AffiliateDTO> affiliateService
     )
 {
     _userService      = userService;
     _roleService      = roleService;
     _affiliateService = affiliateService;
 }
Пример #18
0
 public AffiliateController(ITranslationService translationService,
                            IAffiliateService affiliateService, IAffiliateViewModelService affiliateViewModelService,
                            IMediator mediator,
                            IPermissionService permissionService)
 {
     _translationService        = translationService;
     _affiliateService          = affiliateService;
     _affiliateViewModelService = affiliateViewModelService;
     _mediator          = mediator;
     _permissionService = permissionService;
 }
 public ScheduleController(
     IScheduleService <ScheduleDTO> scheduleService,
     IPatientService <PatientDTO> patientService,
     IAffiliateService <AffiliateDTO> affiliateService,
     IUserService userService
     )
 {
     _scheduleService  = scheduleService;
     _patientService   = patientService;
     _affiliateService = affiliateService;
     _userService      = userService;
 }
Пример #20
0
 public AffiliateController(IAffiliateModelFactory affiliateModelFactory,
                            IAffiliateService affiliateService,
                            ICustomerActivityService customerActivityService,
                            ILocalizationService localizationService,
                            IPermissionService permissionService)
 {
     this._affiliateModelFactory   = affiliateModelFactory;
     this._affiliateService        = affiliateService;
     this._customerActivityService = customerActivityService;
     this._localizationService     = localizationService;
     this._permissionService       = permissionService;
 }
Пример #21
0
        public async Task SetUp()
        {
            _affiliateService = GetService <IAffiliateService>();
            _addressService   = GetService <IAddressService>();
            _activeAffiliate1 = new Affiliate
            {
                Active          = true,
                AddressId       = 1,
                AdminComment    = "Test admin comment",
                FriendlyUrlName = "TestActiveAffiliate1"
            };
            _activeAffiliate2 = new Affiliate
            {
                Active          = true,
                AddressId       = 1,
                AdminComment    = "Test admin comment",
                FriendlyUrlName = "TestActiveAffiliate2"
            };
            _notActiveAffiliate = new Affiliate
            {
                Active          = false,
                AddressId       = 1,
                AdminComment    = "Test admin comment",
                FriendlyUrlName = "TestNotActiveAffiliate"
            };
            _activeDeletedAffiliate = new Affiliate
            {
                Active          = true,
                AddressId       = 1,
                AdminComment    = "Test admin comment",
                FriendlyUrlName = "TestActiveDeletedAffiliate",
                Deleted         = true
            };
            _notActiveDeletedAffiliate = new Affiliate
            {
                Active          = false,
                AddressId       = 1,
                AdminComment    = "Test admin comment",
                FriendlyUrlName = "TestNotActiveDeletedAffiliate",
                Deleted         = true
            };

            await _affiliateService.InsertAffiliateAsync(_activeAffiliate1);

            await _affiliateService.InsertAffiliateAsync(_notActiveAffiliate);

            await _affiliateService.InsertAffiliateAsync(_activeDeletedAffiliate);

            await _affiliateService.InsertAffiliateAsync(_notActiveDeletedAffiliate);
        }
Пример #22
0
 /// <summary>
 /// ctor the Mighty
 /// </summary>
 public AdminController(IUnitOfWorkFactory <BrewgrContext> unitOfWorkFactory, IUserService userService, IAdminService adminService,
                        IMarketingService marketingService, IRecipeDataService brewDataService, IBeerStyleService beerStyleService,
                        IAffiliateService affiliateService, IAuthenticationService authenticationService, ISendToShopService sendToShopService)
 {
     this.UnitOfWorkFactory     = unitOfWorkFactory;
     this.UserService           = userService;
     this.AdminService          = adminService;
     this.MarketingService      = marketingService;
     this.BrewDataService       = brewDataService;
     this.BeerStyleService      = beerStyleService;
     this.AffiliateService      = affiliateService;
     this.AuthenticationService = authenticationService;
     this.SendToShopService     = sendToShopService;
 }
Пример #23
0
		/// <summary>
		/// ctor the Mighty
		/// </summary>
		public AdminController(IUnitOfWorkFactory<BrewgrContext> unitOfWorkFactory, IUserService userService, IAdminService adminService, 
			IMarketingService marketingService, IRecipeDataService brewDataService, IBeerStyleService beerStyleService,
			IAffiliateService affiliateService, IAuthenticationService authenticationService, ISendToShopService sendToShopService)
		{
			this.UnitOfWorkFactory = unitOfWorkFactory;
			this.UserService = userService;
			this.AdminService = adminService;
			this.MarketingService = marketingService;
			this.BrewDataService = brewDataService;
            this.BeerStyleService = beerStyleService;
			this.AffiliateService = affiliateService;
			this.AuthenticationService = authenticationService;
			this.SendToShopService = sendToShopService;
		}
Пример #24
0
 public DepartmentRegistrationController(IDepartmentsService departmentsService, IUsersService usersService, IEmailService emailService,
                                         IInvitesService invitesService, IUserProfileService userProfileService, ISubscriptionsService subscriptionsService, IAffiliateService affiliateService,
                                         IEventAggregator eventAggregator, IEmailMarketingProvider emailMarketingProvider)
 {
     _departmentsService     = departmentsService;
     _usersService           = usersService;
     _emailService           = emailService;
     _invitesService         = invitesService;
     _userProfileService     = userProfileService;
     _subscriptionsService   = subscriptionsService;
     _affiliateService       = affiliateService;
     _eventAggregator        = eventAggregator;
     _emailMarketingProvider = emailMarketingProvider;
 }
 public AffiliateController(IAffiliateModelFactory affiliateModelFactory,
                            IAffiliateService affiliateService,
                            ICustomerActivityService customerActivityService,
                            ILocalizationService localizationService,
                            INotificationService notificationService,
                            IPermissionService permissionService)
 {
     _affiliateModelFactory   = affiliateModelFactory;
     _affiliateService        = affiliateService;
     _customerActivityService = customerActivityService;
     _localizationService     = localizationService;
     _notificationService     = notificationService;
     _permissionService       = permissionService;
 }
Пример #26
0
 public AffiliateViewModelService(IWebHelper webHelper, IWorkContext workContext, ICountryService countryService, IStateProvinceService stateProvinceService,
                                  IPriceFormatter priceFormatter, IAffiliateService affiliateService,
                                  ICustomerService customerService, IOrderService orderService, ILocalizationService localizationService, IDateTimeHelper dateTimeHelper)
 {
     _webHelper            = webHelper;
     _workContext          = workContext;
     _countryService       = countryService;
     _stateProvinceService = stateProvinceService;
     _priceFormatter       = priceFormatter;
     _affiliateService     = affiliateService;
     _customerService      = customerService;
     _orderService         = orderService;
     _localizationService  = localizationService;
     _dateTimeHelper       = dateTimeHelper;
 }
Пример #27
0
 public AuthenticationController(ILangService langService, IMapper mapper, ISettingService settingService,
                                 IAgencyService agencyService, IAffiliateService affiliateService, IAgencyTokenService agencyTokenService,
                                 ISysUserService sysUserService, IUnitOfWorkAsync unitOfWork, ITemplateService templateService, IViewRenderService viewRenderService)
 {
     _langService        = langService;
     _mapper             = mapper;
     _sysUserService     = sysUserService;
     _agencyService      = agencyService;
     _affiliateService   = affiliateService;
     _agencyTokenService = agencyTokenService;
     _settingService     = settingService;
     _templateService    = templateService;
     _unitOfWork         = unitOfWork;
     _viewRenderService  = viewRenderService;
 }
Пример #28
0
 public AffiliateController(ILocalizationService localizationService,
                            IWorkContext workContext, IDateTimeHelper dateTimeHelper, IWebHelper webHelper,
                            ICountryService countryService, IStateProvinceService stateProvinceService,
                            IPriceFormatter priceFormatter, IAffiliateService affiliateService,
                            IPermissionService permissionService)
 {
     this._localizationService  = localizationService;
     this._workContext          = workContext;
     this._dateTimeHelper       = dateTimeHelper;
     this._webHelper            = webHelper;
     this._countryService       = countryService;
     this._stateProvinceService = stateProvinceService;
     this._priceFormatter       = priceFormatter;
     this._affiliateService     = affiliateService;
     this._permissionService    = permissionService;
 }
Пример #29
0
 public AffiliateController(ILocalizationService localizationService,
     IWorkContext workContext, IDateTimeHelper dateTimeHelper, IWebHelper webHelper,
     ICountryService countryService, IStateProvinceService stateProvinceService,
     IPriceFormatter priceFormatter, IAffiliateService affiliateService,
     IPermissionService permissionService)
 {
     this._localizationService = localizationService;
     this._workContext = workContext;
     this._dateTimeHelper = dateTimeHelper;
     this._webHelper = webHelper;
     this._countryService = countryService;
     this._stateProvinceService = stateProvinceService;
     this._priceFormatter = priceFormatter;
     this._affiliateService = affiliateService;
     this._permissionService = permissionService;
 }
Пример #30
0
 public AffiliateModelFactory(IAffiliateService affiliateService,
                              IBaseAdminModelFactory baseAdminModelFactory,
                              ICustomerService customerService,
                              IDateTimeHelper dateTimeHelper,
                              ILocalizationService localizationService,
                              IOrderService orderService,
                              IPriceFormatter priceFormatter)
 {
     _affiliateService      = affiliateService;
     _baseAdminModelFactory = baseAdminModelFactory;
     _customerService       = customerService;
     _dateTimeHelper        = dateTimeHelper;
     _localizationService   = localizationService;
     _orderService          = orderService;
     _priceFormatter        = priceFormatter;
 }
 public SendinBlueMessageService(CommonSettings commonSettings,
                                 EmailAccountSettings emailAccountSettings,
                                 IAddressService addressService,
                                 IAffiliateService affiliateService,
                                 ICustomerService customerService,
                                 IEmailAccountService emailAccountService,
                                 IEventPublisher eventPublisher,
                                 IGenericAttributeService genericAttributeService,
                                 ILanguageService languageService,
                                 ILocalizationService localizationService,
                                 IMessageTemplateService messageTemplateService,
                                 IMessageTokenProvider messageTokenProvider,
                                 IOrderService orderService,
                                 IProductService productService,
                                 ISettingService settingService,
                                 IStoreContext storeContext,
                                 IStoreService storeService,
                                 IQueuedEmailService queuedEmailService,
                                 ITokenizer tokenizer,
                                 SendinBlueManager sendinBlueEmailManager,
                                 LocalizationSettings localizationSettings)
     : base(commonSettings,
            emailAccountSettings,
            addressService,
            affiliateService,
            customerService,
            emailAccountService,
            eventPublisher,
            languageService,
            localizationService,
            messageTemplateService,
            messageTokenProvider,
            orderService,
            productService,
            queuedEmailService,
            storeContext,
            storeService,
            tokenizer,
            localizationSettings)
 {
     _emailAccountService     = emailAccountService;
     _genericAttributeService = genericAttributeService;
     _queuedEmailService      = queuedEmailService;
     _settingService          = settingService;
     _tokenizer = tokenizer;
     _sendinBlueEmailManager = sendinBlueEmailManager;
 }
 public AffiliateViewModelService(IWorkContext workContext, ICountryService countryService,
                                  IPriceFormatter priceFormatter, IAffiliateService affiliateService,
                                  ICustomerService customerService, IOrderService orderService, ITranslationService translationService, IDateTimeService dateTimeService,
                                  IOrderStatusService orderStatusService,
                                  SeoSettings seoSettings)
 {
     _workContext        = workContext;
     _countryService     = countryService;
     _priceFormatter     = priceFormatter;
     _affiliateService   = affiliateService;
     _customerService    = customerService;
     _orderService       = orderService;
     _translationService = translationService;
     _dateTimeService    = dateTimeService;
     _orderStatusService = orderStatusService;
     _seoSettings        = seoSettings;
 }
Пример #33
0
 public AccountController(
     UserManager <Microsoft.AspNet.Identity.EntityFramework6.IdentityUser> userManager, SignInManager <Microsoft.AspNet.Identity.EntityFramework6.IdentityUser> signInManager,
     IDepartmentsService departmentsService, IUsersService usersService, IEmailService emailService, IInvitesService invitesService, IUserProfileService userProfileService,
     ISubscriptionsService subscriptionsService, IAffiliateService affiliateService, IEventAggregator eventAggregator, IEmailMarketingProvider emailMarketingProvider)
 {
     _userManager            = userManager;
     _signInManager          = signInManager;
     _departmentsService     = departmentsService;
     _usersService           = usersService;
     _emailService           = emailService;
     _invitesService         = invitesService;
     _userProfileService     = userProfileService;
     _subscriptionsService   = subscriptionsService;
     _affiliateService       = affiliateService;
     _eventAggregator        = eventAggregator;
     _emailMarketingProvider = emailMarketingProvider;
 }
Пример #34
0
 public ReportsController(ILocalizationService localizationService,
     IWorkContext workContext, IDateTimeHelper dateTimeHelper, IWebHelper webHelper,
     ICountryService countryService, IStateProvinceService stateProvinceService,
     IPriceFormatter priceFormatter, IAffiliateService affiliateService,
     ICustomerService customerService, IOrderService orderService,
     IPermissionService permissionService, ICustomService customService, IExportManager exportManager)
 {
     this._localizationService = localizationService;
     this._workContext = workContext;
     this._dateTimeHelper = dateTimeHelper;
     this._webHelper = webHelper;
     this._countryService = countryService;
     this._stateProvinceService = stateProvinceService;
     this._priceFormatter = priceFormatter;
     this._affiliateService = affiliateService;
     this._customerService = customerService;
     this._orderService = orderService;
     this._permissionService = permissionService;
     this._customService = customService;
     this._exportManager = exportManager;
 }
        public AffiliateController(ILocalizationService localizationService,
            IWorkContext workContext, IDateTimeHelper dateTimeHelper, IWebHelper webHelper,
            ICountryService countryService, IStateProvinceService stateProvinceService,
            IPriceFormatter priceFormatter, IAffiliateService affiliateService,
            ICustomerService customerService, IOrderService orderService,
            IPermissionService permissionService,
			AdminAreaSettings adminAreaSettings,
			CustomerSettings customerSettings)
        {
            this._localizationService = localizationService;
            this._workContext = workContext;
            this._dateTimeHelper = dateTimeHelper;
            this._webHelper = webHelper;
            this._countryService = countryService;
            this._stateProvinceService = stateProvinceService;
            this._priceFormatter = priceFormatter;
            this._affiliateService = affiliateService;
            this._customerService = customerService;
            this._orderService = orderService;
            this._permissionService = permissionService;
			this._adminAreaSettings = adminAreaSettings;
			this._customerSettings = customerSettings;
        }
Пример #36
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="orderService">Order service</param>
 /// <param name="webHelper">Web helper</param>
 /// <param name="localizationService">Localization service</param>
 /// <param name="languageService">Language service</param>
 /// <param name="productService">Product service</param>
 /// <param name="paymentService">Payment service</param>
 /// <param name="logger">Logger</param>
 /// <param name="orderTotalCalculationService">Order total calculationservice</param>
 /// <param name="priceCalculationService">Price calculation service</param>
 /// <param name="priceFormatter">Price formatter</param>
 /// <param name="productAttributeParser">Product attribute parser</param>
 /// <param name="productAttributeFormatter">Product attribute formatter</param>
 /// <param name="giftCardService">Gift card service</param>
 /// <param name="shoppingCartService">Shopping cart service</param>
 /// <param name="checkoutAttributeFormatter">Checkout attribute service</param>
 /// <param name="shippingService">Shipping service</param>
 /// <param name="shipmentService">Shipment service</param>
 /// <param name="taxService">Tax service</param>
 /// <param name="customerService">Customer service</param>
 /// <param name="discountService">Discount service</param>
 /// <param name="encryptionService">Encryption service</param>
 /// <param name="workContext">Work context</param>
 /// <param name="workflowMessageService">Workflow message service</param>
 /// <param name="vendorService">Vendor service</param>
 /// <param name="customerActivityService">Customer activity service</param>
 /// <param name="currencyService">Currency service</param>
 /// <param name="affiliateService">Affiliate service</param>
 /// <param name="eventPublisher">Event published</param>
 /// <param name="pdfService">PDF service</param>
 /// <param name="paymentSettings">Payment settings</param>
 /// <param name="shippingSettings">Shipping settings</param>
 /// <param name="rewardPointsSettings">Reward points settings</param>
 /// <param name="orderSettings">Order settings</param>
 /// <param name="taxSettings">Tax settings</param>
 /// <param name="localizationSettings">Localization settings</param>
 /// <param name="currencySettings">Currency settings</param>
 public OrderProcessingService(IOrderService orderService,
     IWebHelper webHelper,
     ILocalizationService localizationService,
     ILanguageService languageService,
     IProductService productService,
     IPaymentService paymentService,
     ILogger logger,
     IOrderTotalCalculationService orderTotalCalculationService,
     IPriceCalculationService priceCalculationService,
     IPriceFormatter priceFormatter,
     IProductAttributeParser productAttributeParser,
     IProductAttributeFormatter productAttributeFormatter,
     IGiftCardService giftCardService,
     IShoppingCartService shoppingCartService,
     ICheckoutAttributeFormatter checkoutAttributeFormatter,
     IShippingService shippingService,
     IShipmentService shipmentService,
     ITaxService taxService,
     ICustomerService customerService,
     IDiscountService discountService,
     IEncryptionService encryptionService,
     IWorkContext workContext,
     IWorkflowMessageService workflowMessageService,
     IVendorService vendorService,
     ICustomerActivityService customerActivityService,
     ICurrencyService currencyService,
     IAffiliateService affiliateService,
     IEventPublisher eventPublisher,
     IPdfService pdfService,
     ShippingSettings shippingSettings,
     PaymentSettings paymentSettings,
     RewardPointsSettings rewardPointsSettings,
     OrderSettings orderSettings,
     TaxSettings taxSettings,
     LocalizationSettings localizationSettings,
     CurrencySettings currencySettings)
 {
     this._orderService = orderService;
     this._webHelper = webHelper;
     this._localizationService = localizationService;
     this._languageService = languageService;
     this._productService = productService;
     this._paymentService = paymentService;
     this._logger = logger;
     this._orderTotalCalculationService = orderTotalCalculationService;
     this._priceCalculationService = priceCalculationService;
     this._priceFormatter = priceFormatter;
     this._productAttributeParser = productAttributeParser;
     this._productAttributeFormatter = productAttributeFormatter;
     this._giftCardService = giftCardService;
     this._shoppingCartService = shoppingCartService;
     this._checkoutAttributeFormatter = checkoutAttributeFormatter;
     this._workContext = workContext;
     this._workflowMessageService = workflowMessageService;
     this._vendorService = vendorService;
     this._shippingService = shippingService;
     this._shipmentService = shipmentService;
     this._taxService = taxService;
     this._customerService = customerService;
     this._discountService = discountService;
     this._encryptionService = encryptionService;
     this._customerActivityService = customerActivityService;
     this._currencyService = currencyService;
     this._affiliateService = affiliateService;
     this._eventPublisher = eventPublisher;
     this._pdfService = pdfService;
     this._paymentSettings = paymentSettings;
     this._shippingSettings = shippingSettings;
     this._rewardPointsSettings = rewardPointsSettings;
     this._orderSettings = orderSettings;
     this._taxSettings = taxSettings;
     this._localizationSettings = localizationSettings;
     this._currencySettings = currencySettings;
 }
Пример #37
0
        public OrderController(IOrderService orderService, 
            IOrderReportService orderReportService, IOrderProcessingService orderProcessingService,
            IDateTimeHelper dateTimeHelper, IPriceFormatter priceFormatter, ILocalizationService localizationService,
            IWorkContext workContext, ICurrencyService currencyService,
            IEncryptionService encryptionService, IPaymentService paymentService,
            IMeasureService measureService,
            IAddressService addressService, ICountryService countryService,
            IStateProvinceService stateProvinceService, IProductService productService,
            IExportManager exportManager, IPermissionService permissionService,
            IWorkflowMessageService workflowMessageService,
            ICategoryService categoryService, IManufacturerService manufacturerService,
            IProductAttributeService productAttributeService, IProductAttributeParser productAttributeParser,
            IProductAttributeFormatter productAttributeFormatter, IShoppingCartService shoppingCartService,
            ICheckoutAttributeFormatter checkoutAttributeFormatter, 
            IGiftCardService giftCardService, IDownloadService downloadService,
			IShipmentService shipmentService, IStoreService storeService,
			ITaxService taxService,
			IPriceCalculationService priceCalculationService,
			IEventPublisher eventPublisher,
			ICustomerService customerService,
			PluginMediator pluginMediator,
			IAffiliateService affiliateService,
            CatalogSettings catalogSettings, CurrencySettings currencySettings, TaxSettings taxSettings,
            MeasureSettings measureSettings, PdfSettings pdfSettings, AddressSettings addressSettings,
            IPdfConverter pdfConverter, ICommonServices services, Lazy<IPictureService> pictureService)
        {
            this._orderService = orderService;
            this._orderReportService = orderReportService;
            this._orderProcessingService = orderProcessingService;
            this._dateTimeHelper = dateTimeHelper;
            this._priceFormatter = priceFormatter;
            this._localizationService = localizationService;
            this._workContext = workContext;
            this._currencyService = currencyService;
            this._encryptionService = encryptionService;
            this._paymentService = paymentService;
            this._measureService = measureService;
            this._addressService = addressService;
            this._countryService = countryService;
            this._stateProvinceService = stateProvinceService;
            this._productService = productService;
            this._exportManager = exportManager;
            this._permissionService = permissionService;
            this._workflowMessageService = workflowMessageService;
            this._categoryService = categoryService;
            this._manufacturerService = manufacturerService;
            this._productAttributeService = productAttributeService;
            this._productAttributeParser = productAttributeParser;
            this._productAttributeFormatter = productAttributeFormatter;
            this._shoppingCartService = shoppingCartService;
            this._giftCardService = giftCardService;
            this._downloadService = downloadService;
            this._shipmentService = shipmentService;
            this._storeService = storeService;
            this._taxService = taxService;
            this._priceCalculationService = priceCalculationService;
            this._eventPublisher = eventPublisher;
            this._customerService = customerService;
            this._pluginMediator = pluginMediator;
            this._affiliateService = affiliateService;

            this._catalogSettings = catalogSettings;
            this._currencySettings = currencySettings;
            this._taxSettings = taxSettings;
            this._measureSettings = measureSettings;
            this._pdfSettings = pdfSettings;
            this._addressSettings = addressSettings;

            this._checkoutAttributeFormatter = checkoutAttributeFormatter;
            _pdfConverter = pdfConverter;
            _services = services;
            _pictureService = pictureService;
        }
Пример #38
0
        public OrderController(IOrderService orderService, 
            IOrderReportService orderReportService, 
            IOrderProcessingService orderProcessingService,
            IReturnRequestService returnRequestService,
            IPriceCalculationService priceCalculationService,
            ITaxService taxService,
            IDateTimeHelper dateTimeHelper,
            IPriceFormatter priceFormatter,
            IDiscountService discountService,
            ILocalizationService localizationService,
            IWorkContext workContext,
            ICurrencyService currencyService,
            IEncryptionService encryptionService,
            IPaymentService paymentService,
            IMeasureService measureService,
            IPdfService pdfService,
            IAddressService addressService,
            ICountryService countryService,
            IStateProvinceService stateProvinceService,
            IProductService productService,
            IExportManager exportManager,
            IPermissionService permissionService,
            IWorkflowMessageService workflowMessageService,
            ICategoryService categoryService, 
            IManufacturerService manufacturerService,
            IProductAttributeService productAttributeService, 
            IProductAttributeParser productAttributeParser,
            IProductAttributeFormatter productAttributeFormatter, 
            IShoppingCartService shoppingCartService,
            IGiftCardService giftCardService, 
            IDownloadService downloadService,
            IShipmentService shipmentService, 
            IShippingService shippingService,
            IStoreService storeService,
            IVendorService vendorService,
            IAddressAttributeParser addressAttributeParser,
            IAddressAttributeService addressAttributeService,
            IAddressAttributeFormatter addressAttributeFormatter,
            IAffiliateService affiliateService,
            IPictureService pictureService,
            ICustomerActivityService customerActivityService,
            ICacheManager cacheManager,
            OrderSettings orderSettings,
            CurrencySettings currencySettings, 
            TaxSettings taxSettings,
            MeasureSettings measureSettings,
            AddressSettings addressSettings,
            ShippingSettings shippingSettings)
		{
            this._orderService = orderService;
            this._orderReportService = orderReportService;
            this._orderProcessingService = orderProcessingService;
            this._returnRequestService = returnRequestService;
            this._priceCalculationService = priceCalculationService;
            this._taxService = taxService;
            this._dateTimeHelper = dateTimeHelper;
            this._priceFormatter = priceFormatter;
            this._discountService = discountService;
            this._localizationService = localizationService;
            this._workContext = workContext;
            this._currencyService = currencyService;
            this._encryptionService = encryptionService;
            this._paymentService = paymentService;
            this._measureService = measureService;
            this._pdfService = pdfService;
            this._addressService = addressService;
            this._countryService = countryService;
            this._stateProvinceService = stateProvinceService;
            this._productService = productService;
            this._exportManager = exportManager;
            this._permissionService = permissionService;
            this._workflowMessageService = workflowMessageService;
            this._categoryService = categoryService;
            this._manufacturerService = manufacturerService;
            this._productAttributeService = productAttributeService;
            this._productAttributeParser = productAttributeParser;
            this._productAttributeFormatter = productAttributeFormatter;
            this._shoppingCartService = shoppingCartService;
            this._giftCardService = giftCardService;
            this._downloadService = downloadService;
            this._shipmentService = shipmentService;
            this._shippingService = shippingService;
            this._storeService = storeService;
            this._vendorService = vendorService;
            this._addressAttributeParser = addressAttributeParser;
            this._addressAttributeService = addressAttributeService;
            this._addressAttributeFormatter = addressAttributeFormatter;
            this._affiliateService = affiliateService;
            this._pictureService = pictureService;
            this._customerActivityService = customerActivityService;
            this._cacheManager = cacheManager;
            this._orderSettings = orderSettings;
            this._currencySettings = currencySettings;
            this._taxSettings = taxSettings;
            this._measureSettings = measureSettings;
            this._addressSettings = addressSettings;
            this._shippingSettings = shippingSettings;
		}
Пример #39
0
        public InvoicesController(IOrderService orderService,
            IOrderReportService orderReportService,
            IOrderProcessingService orderProcessingService,
            IPriceCalculationService priceCalculationService,
            IDateTimeHelper dateTimeHelper,
            IPriceFormatter priceFormatter,
            IDiscountService discountService,
            ILocalizationService localizationService,
            IWorkContext workContext,
            ICurrencyService currencyService,
            IEncryptionService encryptionService,
            IPaymentService paymentService,
            IMeasureService measureService,
            IPdfService pdfService,
            IAddressService addressService,
            ICountryService countryService,
            IStateProvinceService stateProvinceService,
            Nop.Services.Catalog.IProductService productService,
            IExportManager exportManager,
            IPermissionService permissionService,
            IWorkflowMessageService workflowMessageService,
            ICategoryService categoryService,
            IManufacturerService manufacturerService,
            IProductAttributeService productAttributeService,
            IProductAttributeParser productAttributeParser,
            IProductAttributeFormatter productAttributeFormatter,
            IShoppingCartService shoppingCartService,
            IGiftCardService giftCardService,
            IDownloadService downloadService,
            IShipmentService shipmentService,
            IShippingService shippingService,
            IStoreService storeService,
            IVendorService vendorService,
            IAddressAttributeParser addressAttributeParser,
            IAddressAttributeService addressAttributeService,
            IAddressAttributeFormatter addressAttributeFormatter,
            IAffiliateService affiliateService,
            IPictureService pictureService,
            CurrencySettings currencySettings,
            TaxSettings taxSettings,
            MeasureSettings measureSettings,
            AddressSettings addressSettings,
            ShippingSettings shippingSettings,
            IInvoiceService invoiceService,
            IGenericAttributeService genericAttributeService,
            IProductTemplateService productTemplateService,
            IStoreContext storeContext,
            ISettingService settingService,
            IGroupDealService groupDealService)
        {
            this._orderService = orderService;
            this._orderReportService = orderReportService;
            this._orderProcessingService = orderProcessingService;
            this._priceCalculationService = priceCalculationService;
            this._dateTimeHelper = dateTimeHelper;
            this._priceFormatter = priceFormatter;
            this._discountService = discountService;
            this._localizationService = localizationService;
            this._workContext = workContext;
            this._currencyService = currencyService;
            this._encryptionService = encryptionService;
            this._paymentService = paymentService;
            this._measureService = measureService;
            this._pdfService = pdfService;
            this._addressService = addressService;
            this._countryService = countryService;
            this._stateProvinceService = stateProvinceService;
            this._productService = productService;
            this._exportManager = exportManager;
            this._permissionService = permissionService;
            this._workflowMessageService = workflowMessageService;
            this._categoryService = categoryService;
            this._manufacturerService = manufacturerService;
            this._productAttributeService = productAttributeService;
            this._productAttributeParser = productAttributeParser;
            this._productAttributeFormatter = productAttributeFormatter;
            this._shoppingCartService = shoppingCartService;
            this._giftCardService = giftCardService;
            this._downloadService = downloadService;
            this._shipmentService = shipmentService;
            this._shippingService = shippingService;
            this._storeService = storeService;
            this._vendorService = vendorService;
            this._addressAttributeParser = addressAttributeParser;
            this._addressAttributeService = addressAttributeService;
            this._addressAttributeFormatter = addressAttributeFormatter;
            this._affiliateService = affiliateService;
            this._pictureService = pictureService;

            this._currencySettings = currencySettings;
            this._taxSettings = taxSettings;
            this._measureSettings = measureSettings;
            this._addressSettings = addressSettings;
            this._shippingSettings = shippingSettings;
            this._invoiceService = invoiceService;
            this._genericAttributeService = genericAttributeService;
            this._productTemplateService = productTemplateService;
            this._storeContext = storeContext;
            this._settingService = settingService;
            this._groupDealService = groupDealService;
        }
Пример #40
0
 public CustomerController(ICustomerService customerService,
     INewsLetterSubscriptionService newsLetterSubscriptionService,
     IGenericAttributeService genericAttributeService,
     ICustomerRegistrationService customerRegistrationService,
     ICustomerReportService customerReportService, 
     IDateTimeHelper dateTimeHelper,
     ILocalizationService localizationService, 
     DateTimeSettings dateTimeSettings,
     TaxSettings taxSettings, 
     RewardPointsSettings rewardPointsSettings,
     ICountryService countryService, 
     IStateProvinceService stateProvinceService, 
     IAddressService addressService,
     CustomerSettings customerSettings,
     ITaxService taxService, 
     IWorkContext workContext,
     IVendorService vendorService,
     IStoreContext storeContext,
     IPriceFormatter priceFormatter,
     IOrderService orderService, 
     IExportManager exportManager,
     ICustomerActivityService customerActivityService,
     IBackInStockSubscriptionService backInStockSubscriptionService,
     IPriceCalculationService priceCalculationService,
     IProductAttributeFormatter productAttributeFormatter,
     IPermissionService permissionService, 
     IQueuedEmailService queuedEmailService,
     EmailAccountSettings emailAccountSettings,
     IEmailAccountService emailAccountService, 
     ForumSettings forumSettings,
     IForumService forumService, 
     IOpenAuthenticationService openAuthenticationService,
     AddressSettings addressSettings,
     IStoreService storeService,
     ICustomerAttributeParser customerAttributeParser,
     ICustomerAttributeService customerAttributeService,
     IAddressAttributeParser addressAttributeParser,
     IAddressAttributeService addressAttributeService,
     IAddressAttributeFormatter addressAttributeFormatter,
     IAffiliateService affiliateService,
     IWorkflowMessageService workflowMessageService,
     IRewardPointService rewardPointService)
 {
     this._customerService = customerService;
     this._newsLetterSubscriptionService = newsLetterSubscriptionService;
     this._genericAttributeService = genericAttributeService;
     this._customerRegistrationService = customerRegistrationService;
     this._customerReportService = customerReportService;
     this._dateTimeHelper = dateTimeHelper;
     this._localizationService = localizationService;
     this._dateTimeSettings = dateTimeSettings;
     this._taxSettings = taxSettings;
     this._rewardPointsSettings = rewardPointsSettings;
     this._countryService = countryService;
     this._stateProvinceService = stateProvinceService;
     this._addressService = addressService;
     this._customerSettings = customerSettings;
     this._taxService = taxService;
     this._workContext = workContext;
     this._vendorService = vendorService;
     this._storeContext = storeContext;
     this._priceFormatter = priceFormatter;
     this._orderService = orderService;
     this._exportManager = exportManager;
     this._customerActivityService = customerActivityService;
     this._backInStockSubscriptionService = backInStockSubscriptionService;
     this._priceCalculationService = priceCalculationService;
     this._productAttributeFormatter = productAttributeFormatter;
     this._permissionService = permissionService;
     this._queuedEmailService = queuedEmailService;
     this._emailAccountSettings = emailAccountSettings;
     this._emailAccountService = emailAccountService;
     this._forumSettings = forumSettings;
     this._forumService = forumService;
     this._openAuthenticationService = openAuthenticationService;
     this._addressSettings = addressSettings;
     this._storeService = storeService;
     this._customerAttributeParser = customerAttributeParser;
     this._customerAttributeService = customerAttributeService;
     this._addressAttributeParser = addressAttributeParser;
     this._addressAttributeService = addressAttributeService;
     this._addressAttributeFormatter = addressAttributeFormatter;
     this._affiliateService = affiliateService;
     this._workflowMessageService = workflowMessageService;
     this._rewardPointService = rewardPointService;
 }
        public CustomerController(ICustomerService customerService,
			INewsLetterSubscriptionService newsLetterSubscriptionService,
            IGenericAttributeService genericAttributeService,
            ICustomerRegistrationService customerRegistrationService,
            ICustomerReportService customerReportService, IDateTimeHelper dateTimeHelper,
            ILocalizationService localizationService, DateTimeSettings dateTimeSettings,
            TaxSettings taxSettings, RewardPointsSettings rewardPointsSettings,
            ICountryService countryService, IStateProvinceService stateProvinceService, 
            IAddressService addressService,
            CustomerSettings customerSettings, ITaxService taxService,
			IWorkContext workContext, IStoreContext storeContext, 
			IPriceFormatter priceFormatter,
            IOrderService orderService,
            ICustomerActivityService customerActivityService,
            IPriceCalculationService priceCalculationService,
            IPermissionService permissionService, AdminAreaSettings adminAreaSettings,
            IQueuedEmailService queuedEmailService, EmailAccountSettings emailAccountSettings,
            IEmailAccountService emailAccountService, ForumSettings forumSettings,
            IForumService forumService, IOpenAuthenticationService openAuthenticationService,
			AddressSettings addressSettings, IStoreService storeService,
			IEventPublisher eventPublisher,
			PluginMediator pluginMediator,
			IAffiliateService affiliateService)
        {
            this._customerService = customerService;
            this._newsLetterSubscriptionService = newsLetterSubscriptionService;
            this._genericAttributeService = genericAttributeService;
            this._customerRegistrationService = customerRegistrationService;
            this._customerReportService = customerReportService;
            this._dateTimeHelper = dateTimeHelper;
            this._localizationService = localizationService;
            this._dateTimeSettings = dateTimeSettings;
            this._taxSettings = taxSettings;
            this._rewardPointsSettings = rewardPointsSettings;
            this._countryService = countryService;
            this._stateProvinceService = stateProvinceService;
            this._addressService = addressService;
            this._customerSettings = customerSettings;
            this._taxService = taxService;
            this._workContext = workContext;
            this._storeContext = storeContext;
            this._priceFormatter = priceFormatter;
            this._orderService = orderService;
            this._customerActivityService = customerActivityService;
            this._priceCalculationService = priceCalculationService;
            this._permissionService = permissionService;
            this._adminAreaSettings = adminAreaSettings;
            this._queuedEmailService = queuedEmailService;
            this._emailAccountSettings = emailAccountSettings;
            this._emailAccountService = emailAccountService;
            this._forumSettings = forumSettings;
            this._forumService = forumService;
            this._openAuthenticationService = openAuthenticationService;
            this._addressSettings = addressSettings;
            this._storeService = storeService;
            this._eventPublisher = eventPublisher;
            this._pluginMediator = pluginMediator;
            this._affiliateService = affiliateService;
        }
        public new void SetUp()
        {
            _workContext = null;

            _store = new Store() { Id = 1 };
            _storeContext = MockRepository.GenerateMock<IStoreContext>();
            _storeContext.Expect(x => x.CurrentStore).Return(_store);

            var pluginFinder = new PluginFinder();
            var cacheManager = new NullCache();

            _shoppingCartSettings = new ShoppingCartSettings();
            _catalogSettings = new CatalogSettings();

            //price calculation service
            _discountService = MockRepository.GenerateMock<IDiscountService>();
            _categoryService = MockRepository.GenerateMock<ICategoryService>();
            _productAttributeParser = MockRepository.GenerateMock<IProductAttributeParser>();
            _priceCalcService = new PriceCalculationService(_workContext, _storeContext,
                _discountService, _categoryService,	_productAttributeParser, _productService, _shoppingCartSettings, _catalogSettings);
            _eventPublisher = MockRepository.GenerateMock<IEventPublisher>();
            _eventPublisher.Expect(x => x.Publish(Arg<object>.Is.Anything));

            _localizationService = MockRepository.GenerateMock<ILocalizationService>();
            _settingService = MockRepository.GenerateMock<ISettingService>();

            //shipping
            _shippingSettings = new ShippingSettings();
            _shippingSettings.ActiveShippingRateComputationMethodSystemNames = new List<string>();
            _shippingSettings.ActiveShippingRateComputationMethodSystemNames.Add("FixedRateTestShippingRateComputationMethod");
            _shippingMethodRepository = MockRepository.GenerateMock<IRepository<ShippingMethod>>();
            _logger = new NullLogger();
            _shippingService = new ShippingService(cacheManager,
                _shippingMethodRepository,
                _logger,
                _productAttributeParser,
                _productService,
                _checkoutAttributeParser,
                _genericAttributeService,
                _localizationService,
                _shippingSettings, pluginFinder,
                _eventPublisher, _shoppingCartSettings,
                _settingService);
            _shipmentService = MockRepository.GenerateMock<IShipmentService>();

            _paymentService = MockRepository.GenerateMock<IPaymentService>();
            _checkoutAttributeParser = MockRepository.GenerateMock<ICheckoutAttributeParser>();
            _giftCardService = MockRepository.GenerateMock<IGiftCardService>();
            _genericAttributeService = MockRepository.GenerateMock<IGenericAttributeService>();

            //tax
            _taxSettings = new TaxSettings();
            _taxSettings.ShippingIsTaxable = true;
            _taxSettings.PaymentMethodAdditionalFeeIsTaxable = true;
            _taxSettings.DefaultTaxAddressId = 10;
            _addressService = MockRepository.GenerateMock<IAddressService>();
            _addressService.Expect(x => x.GetAddressById(_taxSettings.DefaultTaxAddressId)).Return(new Address() { Id = _taxSettings.DefaultTaxAddressId });
            _taxService = new TaxService(_addressService, _workContext, _taxSettings, _shoppingCartSettings, pluginFinder, _settingService);

            _rewardPointsSettings = new RewardPointsSettings();

            _orderTotalCalcService = new OrderTotalCalculationService(_workContext, _storeContext,
                _priceCalcService, _taxService, _shippingService, _paymentService,
                _checkoutAttributeParser, _discountService, _giftCardService,
                _genericAttributeService,
                _taxSettings, _rewardPointsSettings, _shippingSettings, _shoppingCartSettings, _catalogSettings);

            _orderService = MockRepository.GenerateMock<IOrderService>();
            _webHelper = MockRepository.GenerateMock<IWebHelper>();
            _languageService = MockRepository.GenerateMock<ILanguageService>();
            _productService = MockRepository.GenerateMock<IProductService>();
            _priceFormatter= MockRepository.GenerateMock<IPriceFormatter>();
            _productAttributeFormatter= MockRepository.GenerateMock<IProductAttributeFormatter>();
            _shoppingCartService= MockRepository.GenerateMock<IShoppingCartService>();
            _checkoutAttributeFormatter= MockRepository.GenerateMock<ICheckoutAttributeFormatter>();
            _customerService= MockRepository.GenerateMock<ICustomerService>();
            _encryptionService = MockRepository.GenerateMock<IEncryptionService>();
            _workflowMessageService = MockRepository.GenerateMock<IWorkflowMessageService>();
            _customerActivityService = MockRepository.GenerateMock<ICustomerActivityService>();
            _currencyService = MockRepository.GenerateMock<ICurrencyService>();
            _affiliateService = MockRepository.GenerateMock<IAffiliateService>();

            _paymentSettings = new PaymentSettings()
            {
                ActivePaymentMethodSystemNames = new List<string>()
                {
                    "Payments.TestMethod"
                }
            };
            _orderSettings = new OrderSettings();

            _localizationSettings = new LocalizationSettings();

            _eventPublisher = MockRepository.GenerateMock<IEventPublisher>();
            _eventPublisher.Expect(x => x.Publish(Arg<object>.Is.Anything));

            _currencySettings = new CurrencySettings();

            _orderProcessingService = new OrderProcessingService(_orderService, _webHelper,
                _localizationService, _languageService,
                _productService, _paymentService, _logger,
                _orderTotalCalcService, _priceCalcService, _priceFormatter,
                _productAttributeParser, _productAttributeFormatter,
                _giftCardService, _shoppingCartService, _checkoutAttributeFormatter,
                _shippingService, _shipmentService, _taxService,
                _customerService, _discountService,
                _encryptionService, _workContext, _storeContext, _workflowMessageService,
                _customerActivityService, _currencyService, _affiliateService,
                _eventPublisher, _paymentSettings, _rewardPointsSettings,
                _orderSettings, _taxSettings, _localizationSettings,
                _currencySettings);
        }