Example #1
0
 public ExportManager(
     INewsLetterSubscriptionService newsLetterSubscriptionService,
     ILanguageService languageService)
 {
     this._newsLetterSubscriptionService = newsLetterSubscriptionService;
     this._languageService = languageService;
 }
 public CollectibleExportService(IProductService productService, 
     ICategoryService categoryService,
     IManufacturerService manufacturerService,
     IPictureService pictureService,
     IUrlRecordService urlRecordService,
     IStoreContext storeContext,
     INewsLetterSubscriptionService newsLetterSubscriptionService,
     ICountryService countryService,   //not used
     IStateProvinceService stateProvinceService,
     IConsignorService consignorService,
     IAuthenticationService authenticationService,
     ILogger logger,
     IRepository<AUCountryLotRecord> countrylotRepo,
     IRepository<AUStateProvinceLotRecord> stateprovincelotRepo
     )
 {
     this._productService = productService;
     this._categoryService = categoryService;
     this._manufacturerService = manufacturerService;
     this._pictureService = pictureService;
     this._urlRecordService = urlRecordService;
     this._storeContext = storeContext;
     this._newsLetterSubscriptionService = newsLetterSubscriptionService;
     this._countryService = countryService;
     this._stateProvinceService = stateProvinceService;
     this._consignorService = consignorService;
     this._authenticationService = authenticationService;
     this._logger = logger;                          //NJM: AUConsignor
     this._countrylotRepo = countrylotRepo;
     this._stateprovincelotRepo = stateprovincelotRepo;
 }
 public ImportManager(ICountryService countryService,
                      IDataProvider dataProvider,
                      IEncryptionService encryptionService,
                      ILocalizationService localizationService,
                      ILogger logger,
                      INewsLetterSubscriptionService newsLetterSubscriptionService,
                      INopFileProvider fileProvider,
                      IPictureService pictureService,
                      IServiceScopeFactory serviceScopeFactory,
                      IStateProvinceService stateProvinceService,
                      IUrlRecordService urlRecordService,
                      IWorkContext workContext,
                      MediaSettings mediaSettings)
 {
     this._countryService      = countryService;
     this._dataProvider        = dataProvider;
     this._encryptionService   = encryptionService;
     this._fileProvider        = fileProvider;
     this._localizationService = localizationService;
     this._logger = logger;
     this._newsLetterSubscriptionService = newsLetterSubscriptionService;
     this._pictureService       = pictureService;
     this._serviceScopeFactory  = serviceScopeFactory;
     this._stateProvinceService = stateProvinceService;
     this._urlRecordService     = urlRecordService;
     this._workContext          = workContext;
     this._mediaSettings        = mediaSettings;
 }
Example #4
0
 public ExportManager(
     IPictureService pictureService,
     INewsLetterSubscriptionService newsLetterSubscriptionService)
 {
     _pictureService = pictureService;
     _newsLetterSubscriptionService = newsLetterSubscriptionService;
 }
 public void TestInitialize()
 {
     _mediatorMock                  = new Mock <IMediator>();
     _subscriptionRepository        = new Mock <IRepository <NewsLetterSubscription> >();
     _historyServiceMock            = new Mock <IHistoryService>();
     _newsLetterSubscriptionService = new NewsLetterSubscriptionService(_subscriptionRepository.Object, _mediatorMock.Object, _historyServiceMock.Object);
 }
 public NewsletterController(INewsletterViewModelService newsletterViewModelService,
                             INewsLetterSubscriptionService newsLetterSubscriptionService,
                             INewsletterCategoryService newsletterCategoryService)
 {
     _newsletterViewModelService    = newsletterViewModelService;
     _newsLetterSubscriptionService = newsLetterSubscriptionService;
 }
Example #7
0
 public CustomerRegistrationService(CustomerSettings customerSettings,
                                    ICustomerService customerService,
                                    IEncryptionService encryptionService,
                                    IEventPublisher eventPublisher,
                                    IGenericAttributeService genericAttributeService,
                                    ILocalizationService localizationService,
                                    INewsLetterSubscriptionService newsLetterSubscriptionService,
                                    IRewardPointService rewardPointService,
                                    IStoreService storeService,
                                    IWorkContext workContext,
                                    IWorkflowMessageService workflowMessageService,
                                    RewardPointsSettings rewardPointsSettings)
 {
     _customerSettings              = customerSettings;
     _customerService               = customerService;
     _encryptionService             = encryptionService;
     _eventPublisher                = eventPublisher;
     _genericAttributeService       = genericAttributeService;
     _localizationService           = localizationService;
     _newsLetterSubscriptionService = newsLetterSubscriptionService;
     _rewardPointService            = rewardPointService;
     _storeService           = storeService;
     _workContext            = workContext;
     _workflowMessageService = workflowMessageService;
     _rewardPointsSettings   = rewardPointsSettings;
 }
 public CampaignController(ICampaignService campaignService,
                           IDateTimeHelper dateTimeHelper,
                           IEmailAccountService emailAccountService,
                           EmailAccountSettings emailAccountSettings,
                           INewsLetterSubscriptionService newsLetterSubscriptionService,
                           ILocalizationService localizationService,
                           IMessageTokenProvider messageTokenProvider,
                           IStoreContext storeContext,
                           IStoreService storeService,
                           IPermissionService permissionService,
                           ICustomerService customerService,
                           ICustomerActivityService customerActivityService)
 {
     this._campaignService               = campaignService;
     this._dateTimeHelper                = dateTimeHelper;
     this._emailAccountService           = emailAccountService;
     this._emailAccountSettings          = emailAccountSettings;
     this._newsLetterSubscriptionService = newsLetterSubscriptionService;
     this._localizationService           = localizationService;
     this._messageTokenProvider          = messageTokenProvider;
     this._storeContext            = storeContext;
     this._storeService            = storeService;
     this._permissionService       = permissionService;
     this._customerService         = customerService;
     this._customerActivityService = customerActivityService;
 }
 public CustomerRegisteredCommandHandler(
     IUserFieldService userFieldService,
     IVatService checkVatService,
     IMessageProviderService messageProviderService,
     INewsLetterSubscriptionService newsLetterSubscriptionService,
     IAddressAttributeService addressAttributeService,
     ICountryService countryService,
     ICustomerService customerService,
     ICustomerActionEventService customerActionEventService,
     TaxSettings taxSettings,
     CustomerSettings customerSettings,
     AddressSettings addressSettings,
     LanguageSettings languageSettings)
 {
     _userFieldService              = userFieldService;
     _checkVatService               = checkVatService;
     _messageProviderService        = messageProviderService;
     _newsLetterSubscriptionService = newsLetterSubscriptionService;
     _addressAttributeService       = addressAttributeService;
     _countryService             = countryService;
     _customerService            = customerService;
     _customerActionEventService = customerActionEventService;
     _taxSettings      = taxSettings;
     _customerSettings = customerSettings;
     _addressSettings  = addressSettings;
     _languageSettings = languageSettings;
 }
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="customerService">Customer service</param>
 /// <param name="encryptionService">Encryption service</param>
 /// <param name="newsLetterSubscriptionService">Newsletter subscription service</param>
 /// <param name="localizationService">Localization service</param>
 /// <param name="storeService">Store service</param>
 /// <param name="rewardPointsSettings">Reward points settings</param>
 /// <param name="customerSettings">Customer settings</param>
 public CustomerRegistrationService(ICustomerService customerService,
                                    IEncryptionService encryptionService,
                                    INewsLetterSubscriptionService newsLetterSubscriptionService,
                                    ILocalizationService localizationService,
                                    IStoreService storeService,
                                    IRewardPointService rewardPointService,
                                    RewardPointsSettings rewardPointsSettings,
                                    CustomerSettings customerSettings,
                                    IStoreContext storeContext)
     : base(customerService,
            encryptionService,
            newsLetterSubscriptionService,
            localizationService,
            storeService,
            rewardPointService,
            rewardPointsSettings,
            customerSettings)
 {
     this._customerService               = customerService;
     this._encryptionService             = encryptionService;
     this._newsLetterSubscriptionService = newsLetterSubscriptionService;
     this._localizationService           = localizationService;
     this._storeService         = storeService;
     this._rewardPointsSettings = rewardPointsSettings;
     this._customerSettings     = customerSettings;
     this._storeContext         = storeContext;
 }
Example #11
0
 public TrialTrackerController(IRepository <TrialTrackerRecord> trialRepository, IProductService productService, ISettingService settingService, INewsLetterSubscriptionService mailService)
 {
     _productService  = productService;
     _trialRepository = trialRepository;
     _settings        = settingService;
     _mailingService  = mailService;
 }
 public ExtendedRewardPointsProgramProcessor(IBlogService blogService,
                                             ICustomerService customerService,
                                             IGenericAttributeService genericAttributeService,
                                             ILanguageService languageService,
                                             ILocalizedEntityService localizedEntityService,
                                             ILocalizationService localizationService,
                                             INewsLetterSubscriptionService newsLetterSubscriptionService,
                                             INewsService newsService,
                                             IProductService productService,
                                             IRewardPointsOnDateSettingsService rewardPointsOnDateSettingsService,
                                             IScheduleTaskService scheduleTaskService,
                                             ISettingService settingService,
                                             ExtendedRewardPointsProgramObjectContext objectContext,
                                             IWebHelper webHelper)
 {
     this._blogService                       = blogService;
     this._customerService                   = customerService;
     this._genericAttributeService           = genericAttributeService;
     this._languageService                   = languageService;
     this._localizedEntityService            = localizedEntityService;
     this._localizationService               = localizationService;
     this._newsLetterSubscriptionService     = newsLetterSubscriptionService;
     this._newsService                       = newsService;
     this._productService                    = productService;
     this._rewardPointsOnDateSettingsService = rewardPointsOnDateSettingsService;
     this._scheduleTaskService               = scheduleTaskService;
     this._settingService                    = settingService;
     this._objectContext                     = objectContext;
     this._webHelper = webHelper;
 }
        public new void SetUp()
        {
            _storeService                  = MockRepository.GenerateMock <IStoreService>();
            _categoryService               = MockRepository.GenerateMock <ICategoryService>();
            _manufacturerService           = MockRepository.GenerateMock <IManufacturerService>();
            _productAttributeService       = MockRepository.GenerateMock <IProductAttributeService>();
            _pictureService                = MockRepository.GenerateMock <IPictureService>();
            _newsLetterSubscriptionService = MockRepository.GenerateMock <INewsLetterSubscriptionService>();
            _productEditorSettings         = new ProductEditorSettings();
            _workContext                = MockRepository.GenerateMock <IWorkContext>();
            _vendorService              = MockRepository.GenerateMock <IVendorService>();
            _productTemplateService     = MockRepository.GenerateMock <IProductTemplateService>();
            _dateRangeService           = MockRepository.GenerateMock <IDateRangeService>();
            _taxCategoryService         = MockRepository.GenerateMock <ITaxCategoryService>();
            _measureService             = MockRepository.GenerateMock <IMeasureService>();
            _catalogSettings            = new CatalogSettings();
            _genericAttributeService    = MockRepository.GenerateMock <IGenericAttributeService>();
            _customerAttributeFormatter = MockRepository.GenerateMock <ICustomerAttributeFormatter>();


            _exportManager = new ExportManager(_categoryService,
                                               _manufacturerService, _productAttributeService,
                                               _pictureService, _newsLetterSubscriptionService,
                                               _storeService, _workContext, _productEditorSettings,
                                               _vendorService, _productTemplateService, _dateRangeService,
                                               _taxCategoryService, _measureService, _catalogSettings,
                                               _genericAttributeService, _customerAttributeFormatter);
        }
 public CustomerModelFactory(AddressSettings addressSettings,
                             CaptchaSettings captchaSettings,
                             CatalogSettings catalogSettings,
                             CommonSettings commonSettings,
                             CustomerSettings customerSettings,
                             DateTimeSettings dateTimeSettings,
                             ExternalAuthenticationSettings externalAuthenticationSettings,
                             ForumSettings forumSettings,
                             GdprSettings gdprSettings,
                             IAddressModelFactory addressModelFactory,
                             ICountryService countryService,
                             ICustomerAttributeParser customerAttributeParser,
                             ICustomerAttributeService customerAttributeService,
                             IDateTimeHelper dateTimeHelper,
                             IDownloadService downloadService,
                             IExternalAuthenticationService externalAuthenticationService,
                             IGdprService gdprService,
                             IGenericAttributeService genericAttributeService,
                             ILocalizationService localizationService,
                             INewsLetterSubscriptionService newsLetterSubscriptionService,
                             IPictureService pictureService,
                             IStateProvinceService stateProvinceService,
                             IStoreContext storeContext,
                             IStoreMappingService storeMappingService,
                             IUrlRecordService urlRecordService,
                             IWorkContext workContext,
                             MediaSettings mediaSettings,
                             SecuritySettings securitySettings,
                             VendorSettings vendorSettings)
 {
     this._addressSettings  = addressSettings;
     this._captchaSettings  = captchaSettings;
     this._catalogSettings  = catalogSettings;
     this._commonSettings   = commonSettings;
     this._customerSettings = customerSettings;
     this._dateTimeSettings = dateTimeSettings;
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     this._forumSettings                 = forumSettings;
     this._gdprSettings                  = gdprSettings;
     this._addressModelFactory           = addressModelFactory;
     this._countryService                = countryService;
     this._customerAttributeParser       = customerAttributeParser;
     this._customerAttributeService      = customerAttributeService;
     this._dateTimeHelper                = dateTimeHelper;
     this._downloadService               = downloadService;
     this._externalAuthenticationService = externalAuthenticationService;
     this._gdprService                   = gdprService;
     this._genericAttributeService       = genericAttributeService;
     this._localizationService           = localizationService;
     this._newsLetterSubscriptionService = newsLetterSubscriptionService;
     this._pictureService                = pictureService;
     this._stateProvinceService          = stateProvinceService;
     this._storeContext                  = storeContext;
     this._storeMappingService           = storeMappingService;
     this._urlRecordService              = urlRecordService;
     this._workContext                   = workContext;
     this._mediaSettings                 = mediaSettings;
     this._securitySettings              = securitySettings;
     this._vendorSettings                = vendorSettings;
 }
Example #15
0
        //private readonly IExportManager _exportManager;


        public NewsLetterSubscriptionController(INewsLetterSubscriptionService newsLetterSubscriptionService
                                                //, IExportManager exportManager
                                                )
        {
            _newsLetterSubscriptionService = newsLetterSubscriptionService;
            //_exportManager = exportManager;
        }
Example #16
0
 public CampaignController(EmailAccountSettings emailAccountSettings,
                           ICampaignModelFactory campaignModelFactory,
                           ICampaignService campaignService,
                           ICustomerActivityService customerActivityService,
                           IDateTimeHelper dateTimeHelper,
                           IEmailAccountService emailAccountService,
                           ILocalizationService localizationService,
                           INotificationService notificationService,
                           INewsLetterSubscriptionService newsLetterSubscriptionService,
                           IPermissionService permissionService,
                           IStoreContext storeContext,
                           IStoreService storeService)
 {
     _emailAccountSettings          = emailAccountSettings;
     _campaignModelFactory          = campaignModelFactory;
     _campaignService               = campaignService;
     _customerActivityService       = customerActivityService;
     _dateTimeHelper                = dateTimeHelper;
     _emailAccountService           = emailAccountService;
     _localizationService           = localizationService;
     _notificationService           = notificationService;
     _newsLetterSubscriptionService = newsLetterSubscriptionService;
     _permissionService             = permissionService;
     _storeContext = storeContext;
     _storeService = storeService;
 }
Example #17
0
 public GdprService(IAddressService addressService,
                    IBlogService blogService,
                    ICustomerService customerService,
                    IExternalAuthenticationService externalAuthenticationService,
                    IEventPublisher eventPublisher,
                    IForumService forumService,
                    IGenericAttributeService genericAttributeService,
                    INewsService newsService,
                    INewsLetterSubscriptionService newsLetterSubscriptionService,
                    IRepository <GdprConsent> gdprConsentRepository,
                    IRepository <GdprLog> gdprLogRepository,
                    IStoreService storeService)
 {
     this._addressService  = addressService;
     this._blogService     = blogService;
     this._customerService = customerService;
     this._externalAuthenticationService = externalAuthenticationService;
     this._eventPublisher                = eventPublisher;
     this._forumService                  = forumService;
     this._genericAttributeService       = genericAttributeService;
     this._newsService                   = newsService;
     this._newsLetterSubscriptionService = newsLetterSubscriptionService;
     this._gdprConsentRepository         = gdprConsentRepository;
     this._gdprLogRepository             = gdprLogRepository;
     this._storeService                  = storeService;
 }
 public ExportManager(AddressSettings addressSettings,
                      UserSettings userSettings,
                      ICountryService countryService,
                      IUserAttributeFormatter userAttributeFormatter,
                      IUserService userService,
                      IDateTimeHelper dateTimeHelper,
                      IGenericAttributeService genericAttributeService,
                      ILocalizationService localizationService,
                      INewsLetterSubscriptionService newsLetterSubscriptionService,
                      IPictureService pictureService,
                      IStateProvinceService stateProvinceService,
                      IUrlRecordService urlRecordService,
                      IWorkContext workContext)
 {
     this._addressSettings               = addressSettings;
     this._userSettings                  = userSettings;
     this._countryService                = countryService;
     this._userAttributeFormatter        = userAttributeFormatter;
     this._userService                   = userService;
     this._dateTimeHelper                = dateTimeHelper;
     this._genericAttributeService       = genericAttributeService;
     this._localizationService           = localizationService;
     this._newsLetterSubscriptionService = newsLetterSubscriptionService;
     this._pictureService                = pictureService;
     this._stateProvinceService          = stateProvinceService;
     this._urlRecordService              = urlRecordService;
     this._workContext                   = workContext;
 }
Example #19
0
 public new void SetUp()
 {
     _storeService                  = MockRepository.GenerateMock <IStoreService>();
     _categoryService               = MockRepository.GenerateMock <ICategoryService>();
     _manufacturerService           = MockRepository.GenerateMock <IManufacturerService>();
     _productAttributeService       = MockRepository.GenerateMock <IProductAttributeService>();
     _pictureService                = MockRepository.GenerateMock <IPictureService>();
     _newsLetterSubscriptionService = MockRepository.GenerateMock <INewsLetterSubscriptionService>();
     _productEditorSettings         = new ProductEditorSettings();
     _workContext            = MockRepository.GenerateMock <IWorkContext>();
     _vendorService          = MockRepository.GenerateMock <IVendorService>();
     _productTemplateService = MockRepository.GenerateMock <IProductTemplateService>();
     _shippingService        = MockRepository.GenerateMock <IShippingService>();
     _taxCategoryService     = MockRepository.GenerateMock <ITaxCategoryService>();
     _measureService         = MockRepository.GenerateMock <IMeasureService>();
     _catalogSettings        = new CatalogSettings();
     _discountService        = MockRepository.GenerateMock <IDiscountService>(); //NOP 3.826
     _giftCardService        = MockRepository.GenerateMock <IGiftCardService>(); //NOP 3.830
     _exportManager          = new ExportManager(_categoryService,
                                                 _manufacturerService, _productAttributeService,
                                                 _pictureService, _newsLetterSubscriptionService,
                                                 _storeService, _workContext, _productEditorSettings,
                                                 _vendorService, _productTemplateService, _shippingService,
                                                 _taxCategoryService, _measureService, _catalogSettings,
                                                 _discountService,  //NOP 3.826
                                                 _giftCardService); //NOP 3.830
 }
Example #20
0
 public GdprService(IAddressService addressService,
                    IBackInStockSubscriptionService backInStockSubscriptionService,
                    IBlogService blogService,
                    ICacheKeyService cacheKeyService,
                    ICustomerService customerService,
                    IExternalAuthenticationService externalAuthenticationService,
                    IEventPublisher eventPublisher,
                    IForumService forumService,
                    IGenericAttributeService genericAttributeService,
                    INewsService newsService,
                    INewsLetterSubscriptionService newsLetterSubscriptionService,
                    IProductService productService,
                    IRepository <GdprConsent> gdprConsentRepository,
                    IRepository <GdprLog> gdprLogRepository,
                    IShoppingCartService shoppingCartService,
                    IStoreService storeService)
 {
     _addressService = addressService;
     _backInStockSubscriptionService = backInStockSubscriptionService;
     _blogService     = blogService;
     _cacheKeyService = cacheKeyService;
     _customerService = customerService;
     _externalAuthenticationService = externalAuthenticationService;
     _eventPublisher                = eventPublisher;
     _forumService                  = forumService;
     _genericAttributeService       = genericAttributeService;
     _newsService                   = newsService;
     _newsLetterSubscriptionService = newsLetterSubscriptionService;
     _productService                = productService;
     _gdprConsentRepository         = gdprConsentRepository;
     _gdprLogRepository             = gdprLogRepository;
     _shoppingCartService           = shoppingCartService;
     _storeService                  = storeService;
 }
Example #21
0
 public CustomerRegisteredCommandHandler(
     IGenericAttributeService genericAttributeService,
     IVatService checkVatService,
     IWorkflowMessageService workflowMessageService,
     INewsLetterSubscriptionService newsLetterSubscriptionService,
     IAddressService addressService,
     ICustomerService customerService,
     ICustomerActionEventService customerActionEventService,
     DateTimeSettings dateTimeSettings,
     TaxSettings taxSettings,
     CustomerSettings customerSettings,
     LocalizationSettings localizationSettings)
 {
     _genericAttributeService       = genericAttributeService;
     _checkVatService               = checkVatService;
     _workflowMessageService        = workflowMessageService;
     _newsLetterSubscriptionService = newsLetterSubscriptionService;
     _addressService             = addressService;
     _customerService            = customerService;
     _customerActionEventService = customerActionEventService;
     _dateTimeSettings           = dateTimeSettings;
     _taxSettings          = taxSettings;
     _customerSettings     = customerSettings;
     _localizationSettings = localizationSettings;
 }
Example #22
0
 public CampaignController(ICampaignService campaignService,
                           IDateTimeHelper dateTimeHelper, IEmailAccountService emailAccountService,
                           EmailAccountSettings emailAccountSettings,
                           INewsLetterSubscriptionService newsLetterSubscriptionService,
                           ILocalizationService localizationService, IMessageTokenProvider messageTokenProvider,
                           IPermissionService permissionService,
                           ILanguageService languageService,
                           ILocalizedEntityService localizationEntityService,
                           IWorkContext workContext,
                           ICategoryService categoryService,
                           CampaignSettings campaignSettings,
                           ISettingService settingService,
                           INewsletterDatesService newsletterDatesService)
 {
     this._campaignService               = campaignService;
     this._dateTimeHelper                = dateTimeHelper;
     this._emailAccountService           = emailAccountService;
     this._emailAccountSettings          = emailAccountSettings;
     this._newsLetterSubscriptionService = newsLetterSubscriptionService;
     this._localizationService           = localizationService;
     this._messageTokenProvider          = messageTokenProvider;
     this._permissionService             = permissionService;
     this._languageService               = languageService;
     this._localizationEntityService     = localizationEntityService;
     this._workContext            = workContext;
     this._categoryService        = categoryService;
     this._campaignSettings       = campaignSettings;
     this._settingService         = settingService;
     this._newsletterDatesService = newsletterDatesService;
 }
 public GetInfoHandler(
     IDateTimeHelper dateTimeHelper,
     INewsLetterSubscriptionService newsLetterSubscriptionService,
     INewsletterCategoryService newsletterCategoryService,
     ILocalizationService localizationService,
     ICountryService countryService,
     IStateProvinceService stateProvinceService,
     IExternalAuthenticationService externalAuthenticationService,
     IMediator mediator,
     CustomerSettings customerSettings,
     DateTimeSettings dateTimeSettings,
     TaxSettings taxSettings,
     ForumSettings forumSettings,
     ExternalAuthenticationSettings externalAuthenticationSettings)
 {
     _dateTimeHelper = dateTimeHelper;
     _newsLetterSubscriptionService = newsLetterSubscriptionService;
     _newsletterCategoryService     = newsletterCategoryService;
     _localizationService           = localizationService;
     _countryService                = countryService;
     _stateProvinceService          = stateProvinceService;
     _externalAuthenticationService = externalAuthenticationService;
     _mediator         = mediator;
     _customerSettings = customerSettings;
     _dateTimeSettings = dateTimeSettings;
     _taxSettings      = taxSettings;
     _forumSettings    = forumSettings;
     _externalAuthenticationSettings = externalAuthenticationSettings;
 }
Example #24
0
 public UpdateCustomerInfoCommandHandler(
     ICustomerRegistrationService customerRegistrationService,
     IGrandAuthenticationService authenticationService,
     IGenericAttributeService genericAttributeService,
     IVatService checkVatService,
     IWorkflowMessageService workflowMessageService,
     INewsLetterSubscriptionService newsLetterSubscriptionService,
     DateTimeSettings dateTimeSettings,
     CustomerSettings customerSettings,
     TaxSettings taxSettings,
     LocalizationSettings localizationSettings,
     ForumSettings forumSettings)
 {
     _customerRegistrationService   = customerRegistrationService;
     _authenticationService         = authenticationService;
     _genericAttributeService       = genericAttributeService;
     _checkVatService               = checkVatService;
     _workflowMessageService        = workflowMessageService;
     _newsLetterSubscriptionService = newsLetterSubscriptionService;
     _dateTimeSettings              = dateTimeSettings;
     _customerSettings              = customerSettings;
     _taxSettings          = taxSettings;
     _localizationSettings = localizationSettings;
     _forumSettings        = forumSettings;
 }
 public UserController(AddressSettings addressSettings,
                       CaptchaSettings captchaSettings,
                       UserSettings userSettings,
                       DateTimeSettings dateTimeSettings,
                       IDownloadService downloadService,
                       IAddressAttributeParser addressAttributeParser,
                       IAddressModelFactory addressModelFactory,
                       IAddressService addressService,
                       IAuthenticationService authenticationService,
                       ICountryService countryService,
                       IUserActivityService userActivityService,
                       IUserAttributeParser userAttributeParser,
                       IUserAttributeService userAttributeService,
                       IUserModelFactory userModelFactory,
                       IUserRegistrationService userRegistrationService,
                       IUserService userService,
                       IEventPublisher eventPublisher,
                       IExportManager exportManager,
                       IExternalAuthenticationService externalAuthenticationService,
                       IGenericAttributeService genericAttributeService,
                       ILocalizationService localizationService,
                       INewsLetterSubscriptionService newsLetterSubscriptionService,
                       IPictureService pictureService,
                       IWebHelper webHelper,
                       IWorkContext workContext,
                       IWorkflowMessageService workflowMessageService,
                       LocalizationSettings localizationSettings,
                       MediaSettings mediaSettings,
                       SiteInformationSettings siteInformationSettings)
 {
     this._addressSettings               = addressSettings;
     this._captchaSettings               = captchaSettings;
     this._userSettings                  = userSettings;
     this._dateTimeSettings              = dateTimeSettings;
     this._downloadService               = downloadService;
     this._addressAttributeParser        = addressAttributeParser;
     this._addressModelFactory           = addressModelFactory;
     this._addressService                = addressService;
     this._authenticationService         = authenticationService;
     this._countryService                = countryService;
     this._userActivityService           = userActivityService;
     this._userAttributeParser           = userAttributeParser;
     this._userAttributeService          = userAttributeService;
     this._userModelFactory              = userModelFactory;
     this._userRegistrationService       = userRegistrationService;
     this._userService                   = userService;
     this._eventPublisher                = eventPublisher;
     this._exportManager                 = exportManager;
     this._externalAuthenticationService = externalAuthenticationService;
     this._genericAttributeService       = genericAttributeService;
     this._localizationService           = localizationService;
     this._newsLetterSubscriptionService = newsLetterSubscriptionService;
     this._pictureService                = pictureService;
     this._webHelper               = webHelper;
     this._workContext             = workContext;
     this._workflowMessageService  = workflowMessageService;
     this._localizationSettings    = localizationSettings;
     this._mediaSettings           = mediaSettings;
     this._siteInformationSettings = siteInformationSettings;
 }
 public CustomersController(
     ICustomerApiService customerApiService,
     IJsonFieldsSerializer jsonFieldsSerializer,
     IAclService aclService,
     ICustomerService customerService,
     IStoreMappingService storeMappingService,
     IStoreService storeService,
     IDiscountService discountService,
     ICustomerActivityService customerActivityService,
     ILocalizationService localizationService,
     ICustomerRolesHelper customerRolesHelper,
     IGenericAttributeService genericAttributeService,
     IEncryptionService encryptionService,
     IFactory <Customer> factory,
     ICountryService countryService,
     IMappingHelper mappingHelper,
     INewsLetterSubscriptionService newsLetterSubscriptionService,
     IPictureService pictureService, ILanguageService languageService) :
     base(jsonFieldsSerializer, aclService, customerService, storeMappingService, storeService, discountService, customerActivityService, localizationService, pictureService)
 {
     _customerApiService            = customerApiService;
     _factory                       = factory;
     _countryService                = countryService;
     _mappingHelper                 = mappingHelper;
     _newsLetterSubscriptionService = newsLetterSubscriptionService;
     _languageService               = languageService;
     _encryptionService             = encryptionService;
     _genericAttributeService       = genericAttributeService;
     _customerRolesHelper           = customerRolesHelper;
 }
 public TrialTrackerController(IRepository<TrialTrackerRecord> trialRepository, IProductService productService, ISettingService settingService, INewsLetterSubscriptionService mailService)
 {
     _productService = productService;
     _trialRepository = trialRepository;
     _settings = settingService;
     _mailingService = mailService;
 }
 public NewsletterController(INewsletterWebService newsletterWebService,
                             INewsLetterSubscriptionService newsLetterSubscriptionService,
                             INewsletterCategoryService newsletterCategoryService)
 {
     this._newsletterWebService          = newsletterWebService;
     this._newsLetterSubscriptionService = newsLetterSubscriptionService;
 }
Example #29
0
        public ExportManager(ICategoryService categoryService,
            IManufacturerService manufacturerService,
            IProductService productService,
			IProductAttributeService productAttributeService,
            IProductTemplateService productTemplateService,
            IPictureService pictureService,
            INewsLetterSubscriptionService newsLetterSubscriptionService,
            ILanguageService languageService,
			MediaSettings mediaSettings,
			ICommonServices services,
            IStoreMappingService storeMappingService)
        {
            _categoryService = categoryService;
            _manufacturerService = manufacturerService;
            _productService = productService;
			_productAttributeService = productAttributeService;
			_productTemplateService = productTemplateService;
            _pictureService = pictureService;
            _newsLetterSubscriptionService = newsLetterSubscriptionService;
            _languageService = languageService;
			_mediaSettings = mediaSettings;
			_services = services;
            _storeMappingService = storeMappingService;

			Logger = NullLogger.Instance;
        }
Example #30
0
 public HomeController(
     IPictureService pictureService,
     IContentService contentService,
     INewsService newsService,
     IWorkContext workContext,
     NewsSettings newsSettings,
     ILocalizationService localizationService,
     ICountryService countryService,
     INewsLetterSubscriptionService newsLetterSubscriptionService,
     IWorkflowMessageService workflowMessageService,
     IProductService productService,
     IExportManager exportManager,
     ICacheManager cacheManager
     )
 {
     this._pictureService                = pictureService;
     this._contentService                = contentService;
     this._newsService                   = newsService;
     this._workContext                   = workContext;
     this._newsSettings                  = newsSettings;
     this._localizationService           = localizationService;
     this._countryService                = countryService;
     this._newsLetterSubscriptionService = newsLetterSubscriptionService;
     this._workflowMessageService        = workflowMessageService;
     this._productService                = productService;
     this._exportManager                 = exportManager;
     this._cacheManager                  = EngineContext.Current.ContainerManager.Resolve <ICacheManager>("nop_cache_static");
 }
Example #31
0
 public CustomerController(
     ITransactionService transactionService,
     ICustomerPlanService customerPlanService,
     IPlanService planService,
     ICommonServices services,
     IAuthenticationService authenticationService,
     IDateTimeHelper dateTimeHelper,
     DateTimeSettings dateTimeSettings, TaxSettings taxSettings,
     ILocalizationService localizationService,
     IWorkContext workContext, IStoreContext storeContext,
     ICustomerService customerService,
     IGenericAttributeService genericAttributeService,
     ICustomerRegistrationService customerRegistrationService,
     ITaxService taxService, RewardPointsSettings rewardPointsSettings,
     CustomerSettings customerSettings, AddressSettings addressSettings, ForumSettings forumSettings,
     ICurrencyService currencyService,
     IPriceFormatter priceFormatter,
     IPictureService pictureService, INewsLetterSubscriptionService newsLetterSubscriptionService,
     ICustomerActivityService customerActivityService,
     MediaSettings mediaSettings,
     LocalizationSettings localizationSettings,
     ExternalAuthenticationSettings externalAuthenticationSettings,
     PluginMediator pluginMediator,
     IPermissionService permissionService,
     IBoardService boardService,
     ICountryService countryService,
     IAuthenticationService formsAuthenticationService,
     IAdCampaignService adCampaignService)
 {
     _planService                    = planService;
     _customerPlanService            = customerPlanService;
     _transactionService             = transactionService;
     _services                       = services;
     _authenticationService          = authenticationService;
     _dateTimeHelper                 = dateTimeHelper;
     _dateTimeSettings               = dateTimeSettings;
     _localizationService            = localizationService;
     _workContext                    = workContext;
     _storeContext                   = storeContext;
     _customerService                = customerService;
     _genericAttributeService        = genericAttributeService;
     _customerRegistrationService    = customerRegistrationService;
     _taxService                     = taxService;
     _customerSettings               = customerSettings;
     _currencyService                = currencyService;
     _priceFormatter                 = priceFormatter;
     _pictureService                 = pictureService;
     _newsLetterSubscriptionService  = newsLetterSubscriptionService;
     _customerActivityService        = customerActivityService;
     _mediaSettings                  = mediaSettings;
     _localizationSettings           = localizationSettings;
     _externalAuthenticationSettings = externalAuthenticationSettings;
     _pluginMediator                 = pluginMediator;
     _permissionService              = permissionService;
     _boardService                   = boardService;
     _countryService                 = countryService;
     _formsAuthenticationService     = formsAuthenticationService;
     _adCampaignService              = adCampaignService;
 }
 public WebHooksController(MailChimpSettings settings, HttpContextBase httpContext,
     IStoreContext storeContext, INewsLetterSubscriptionService newsLetterSubscriptionService)
 {
     _settings = settings;
     _httpContext = httpContext;
     _storeContext = storeContext;
     _newsLetterSubscriptionService = newsLetterSubscriptionService;
 }
 public NewsLetterSubscriptionController(
     INewsLetterSubscriptionService newsLetterSubscriptionService,
     IDateTimeHelper dateTimeHelper,
     AdminAreaSettings adminAreaSettings)
 {
     _newsLetterSubscriptionService = newsLetterSubscriptionService;
     _dateTimeHelper    = dateTimeHelper;
     _adminAreaSettings = adminAreaSettings;
 }
 public CustomerModelFactory(IAddressModelFactory addressModelFactory,
                             IDateTimeHelper dateTimeHelper,
                             DateTimeSettings dateTimeSettings,
                             TaxSettings taxSettings,
                             ILocalizationService localizationService,
                             IWorkContext workContext,
                             IStoreContext storeContext,
                             IStoreMappingService storeMappingService,
                             ICustomerAttributeParser customerAttributeParser,
                             ICustomerAttributeService customerAttributeService,
                             IGenericAttributeService genericAttributeService,
                             RewardPointsSettings rewardPointsSettings,
                             CustomerSettings customerSettings,
                             AddressSettings addressSettings,
                             OrderSettings orderSettings,
                             ICountryService countryService,
                             IStateProvinceService stateProvinceService,
                             IOrderService orderService,
                             IPictureService pictureService,
                             INewsLetterSubscriptionService newsLetterSubscriptionService,
                             IOpenAuthenticationService openAuthenticationService,
                             IDownloadService downloadService,
                             MediaSettings mediaSettings,
                             CaptchaSettings captchaSettings,
                             SecuritySettings securitySettings,
                             ExternalAuthenticationSettings externalAuthenticationSettings,
                             CatalogSettings catalogSettings
                             )
 {
     this._addressModelFactory            = addressModelFactory;
     this._dateTimeHelper                 = dateTimeHelper;
     this._dateTimeSettings               = dateTimeSettings;
     this._taxSettings                    = taxSettings;
     this._localizationService            = localizationService;
     this._workContext                    = workContext;
     this._storeContext                   = storeContext;
     this._storeMappingService            = storeMappingService;
     this._customerAttributeParser        = customerAttributeParser;
     this._customerAttributeService       = customerAttributeService;
     this._genericAttributeService        = genericAttributeService;
     this._rewardPointsSettings           = rewardPointsSettings;
     this._customerSettings               = customerSettings;
     this._addressSettings                = addressSettings;
     this._orderSettings                  = orderSettings;
     this._countryService                 = countryService;
     this._stateProvinceService           = stateProvinceService;
     this._orderService                   = orderService;
     this._pictureService                 = pictureService;
     this._newsLetterSubscriptionService  = newsLetterSubscriptionService;
     this._openAuthenticationService      = openAuthenticationService;
     this._downloadService                = downloadService;
     this._mediaSettings                  = mediaSettings;
     this._captchaSettings                = captchaSettings;
     this._securitySettings               = securitySettings;
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     this._catalogSettings                = catalogSettings;
 }
		public NewsLetterSubscriptionController(INewsLetterSubscriptionService newsLetterSubscriptionService,
			IDateTimeHelper dateTimeHelper,ILocalizationService localizationService,
            IPermissionService permissionService, AdminAreaSettings adminAreaSettings)
		{
			this._newsLetterSubscriptionService = newsLetterSubscriptionService;
			this._dateTimeHelper = dateTimeHelper;
            this._localizationService = localizationService;
            this._permissionService = permissionService;
            this._adminAreaSettings = adminAreaSettings;
		}
        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,
			IExportManager exportManager,
            ICustomerActivityService customerActivityService,
            IPriceCalculationService priceCalculationService,
            IPermissionService permissionService, AdminAreaSettings adminAreaSettings,
            IQueuedEmailService queuedEmailService, EmailAccountSettings emailAccountSettings,
            IEmailAccountService emailAccountService, ForumSettings forumSettings,
            IForumService forumService, IOpenAuthenticationService openAuthenticationService,
			AddressSettings addressSettings, IStoreService storeService)
        {
            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._exportManager = exportManager;
            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;
        }
Example #37
0
        public NewsletterController(ILocalizationService localizationService,
            IWorkContext workContext, INewsLetterSubscriptionService newsLetterSubscriptionService,
            IWorkflowMessageService workflowMessageService, CustomerSettings customerSettings)
        {
            this._localizationService = localizationService;
            this._workContext = workContext;
            this._newsLetterSubscriptionService = newsLetterSubscriptionService;
            this._workflowMessageService = workflowMessageService;

            this._customerSettings = customerSettings;
        }
        public new void SetUp()
        {
            _categoryService = MockRepository.GenerateMock<ICategoryService>();
            _manufacturerService = MockRepository.GenerateMock<IManufacturerService>();
            _productAttributeService = MockRepository.GenerateMock<IProductAttributeService>();
            _pictureService = MockRepository.GenerateMock<IPictureService>();
            _newsLetterSubscriptionService = MockRepository.GenerateMock<INewsLetterSubscriptionService>();

            _exportManager = new ExportManager(_categoryService,
                _manufacturerService, _productAttributeService, _pictureService, _newsLetterSubscriptionService);
        }
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="accountService">Account service</param>
 /// <param name="encryptionService">Encryption service</param>
 /// <param name="newsLetterSubscriptionService">Newsletter subscription service</param>
 /// <param name="localizationService">Localization service</param>
 /// <param name="rewardPointsSettings">Reward points settings</param>
 /// <param name="accountSettings">Account settings</param>
 public AccountRegistrationService(IAccountService accountService,
     IEncryptionService encryptionService,
     INewsLetterSubscriptionService newsLetterSubscriptionService,
     ILocalizationService localizationService,
     AccountSettings accountSettings)
 {
     this._accountService = accountService;
     this._encryptionService = encryptionService;
     this._newsLetterSubscriptionService = newsLetterSubscriptionService;
     this._localizationService = localizationService;
     this._accountSettings = accountSettings;
 }
        public NewsLetterSubscriptionController(INewsLetterSubscriptionService newsLetterSubscriptionService,
			IDateTimeHelper dateTimeHelper,
            IPermissionService permissionService,
			AdminAreaSettings adminAreaSettings,
			IStoreService storeService)
        {
            this._newsLetterSubscriptionService = newsLetterSubscriptionService;
            this._dateTimeHelper = dateTimeHelper;
            this._permissionService = permissionService;
            this._adminAreaSettings = adminAreaSettings;
            this._storeService = storeService;
        }
        public new void SetUp()
        {
            _categoryService = MockRepository.GenerateMock<ICategoryService>();
            _manufacturerService = MockRepository.GenerateMock<IManufacturerService>();
            _productService = MockRepository.GenerateMock<IProductService>();
            _pictureService = MockRepository.GenerateMock<IPictureService>();
            _newsLetterSubscriptionService = MockRepository.GenerateMock<INewsLetterSubscriptionService>();

            _storeInformationSettings = new StoreInformationSettings();
            _exportManager = new ExportManager(_categoryService,
                _manufacturerService, _productService, _pictureService, _newsLetterSubscriptionService, _storeInformationSettings);
        }
Example #42
0
 public ExportManager(ICategoryService categoryService,
     IManufacturerService manufacturerService,
     IProductAttributeService productAttributeService,
     IPictureService pictureService,
     INewsLetterSubscriptionService newsLetterSubscriptionService)
 {
     this._categoryService = categoryService;
     this._manufacturerService = manufacturerService;
     this._productAttributeService = productAttributeService;
     this._pictureService = pictureService;
     this._newsLetterSubscriptionService = newsLetterSubscriptionService;
 }
        public NewsletterController(
            IWorkContext workContext,
			INewsLetterSubscriptionService newsLetterSubscriptionService,
            IWorkflowMessageService workflowMessageService,
			CustomerSettings customerSettings,
			IStoreContext storeContext)
        {
            this._workContext = workContext;
            this._newsLetterSubscriptionService = newsLetterSubscriptionService;
            this._workflowMessageService = workflowMessageService;
            this._customerSettings = customerSettings;
            this._storeContext = storeContext;
        }
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="customerService">Customer service</param>
 /// <param name="encryptionService">Encryption service</param>
 /// <param name="newsLetterSubscriptionService">Newsletter subscription service</param>
 /// <param name="localizationService">Localization service</param>
 /// <param name="rewardPointsSettings">Reward points settings</param>
 /// <param name="customerSettings">Customer settings</param>
 public CustomerRegistrationService(ICustomerService customerService, 
     IEncryptionService encryptionService,
     INewsLetterSubscriptionService newsLetterSubscriptionService,
     ILocalizationService localizationService,
     RewardPointsSettings rewardPointsSettings, CustomerSettings customerSettings)
 {
     this._customerService = customerService;
     this._encryptionService = encryptionService;
     this._newsLetterSubscriptionService = newsLetterSubscriptionService;
     this._localizationService = localizationService;
     this._rewardPointsSettings = rewardPointsSettings;
     this._customerSettings = customerSettings;
 }
 public NewsLetterSubscriptionController(INewsLetterSubscriptionService newsLetterSubscriptionService,
     IDateTimeHelper dateTimeHelper,
     ILocalizationService localizationService,
     IPermissionService permissionService,
     IStoreContext storeContext,
     IStoreService storeService)
 {
     this._newsLetterSubscriptionService = newsLetterSubscriptionService;
     this._dateTimeHelper = dateTimeHelper;
     this._localizationService = localizationService;
     this._permissionService = permissionService;
     this._storeContext = storeContext;
     this._storeService = storeService;
 }
Example #46
0
 public ExportManager(ICategoryService categoryService,
     IManufacturerService manufacturerService,
     IProductService productService,
     IPictureService pictureService,
     INewsLetterSubscriptionService newsLetterSubscriptionService,
     StoreInformationSettings storeInformationSettings)
 {
     this._categoryService = categoryService;
     this._manufacturerService = manufacturerService;
     this._productService = productService;
     this._pictureService = pictureService;
     this._newsLetterSubscriptionService = newsLetterSubscriptionService;
     this._storeInformationSettings = storeInformationSettings;
 }
		public NewsLetterSubscriptionController(INewsLetterSubscriptionService newsLetterSubscriptionService,
			IDateTimeHelper dateTimeHelper,
            ILocalizationService localizationService,
            IPermissionService permissionService,
            IStoreService storeService,
            IExportManager exportManager,
            IImportManager importManager)
		{
			this._newsLetterSubscriptionService = newsLetterSubscriptionService;
			this._dateTimeHelper = dateTimeHelper;
            this._localizationService = localizationService;
            this._permissionService = permissionService;
            this._storeService = storeService;
            this._exportManager = exportManager;
            this._importManager = importManager;
		}
 /// <summary>
 /// Ctor
 /// </summary>
 public CustomerRegistrationService(ICustomerService customerService, 
     IEncryptionService encryptionService, 
     INewsLetterSubscriptionService newsLetterSubscriptionService,
     ILocalizationService localizationService,
     RewardPointsSettings rewardPointsSettings, CustomerSettings customerSettings,
     IStoreContext storeContext, IEventPublisher eventPublisher)
 {
     this._customerService = customerService;
     this._encryptionService = encryptionService;
     this._newsLetterSubscriptionService = newsLetterSubscriptionService;
     this._localizationService = localizationService;
     this._rewardPointsSettings = rewardPointsSettings;
     this._customerSettings = customerSettings;
     this._storeContext = storeContext;
     this._eventPublisher = eventPublisher;
 }
        public new void SetUp()
        {
            _categoryService = MockRepository.GenerateMock<ICategoryService>();
            _manufacturerService = MockRepository.GenerateMock<IManufacturerService>();
            _productService = MockRepository.GenerateMock<IProductService>();
			_productTemplateService = MockRepository.GenerateMock<IProductTemplateService>();
            _pictureService = MockRepository.GenerateMock<IPictureService>();
            _newsLetterSubscriptionService = MockRepository.GenerateMock<INewsLetterSubscriptionService>();
            _languageService = MockRepository.GenerateMock<ILanguageService>();
			_mediaSettings = MockRepository.GenerateMock<MediaSettings>();
			_commonServices = MockRepository.GenerateMock<ICommonServices>();
            _storeMapping = MockRepository.GenerateMock<IStoreMappingService>();

            _exportManager = new ExportManager(_categoryService, _manufacturerService, _productService, _productTemplateService, _pictureService,
                _newsLetterSubscriptionService, _languageService, _mediaSettings, _commonServices, _storeMapping);
        }
Example #50
0
 public CampaignController(ICampaignService campaignService,
     IDateTimeHelper dateTimeHelper, IEmailAccountService emailAccountService,
     EmailAccountSettings emailAccountSettings,
     INewsLetterSubscriptionService newsLetterSubscriptionService,
     ILocalizationService localizationService, IMessageTokenProvider messageTokenProvider,
     IPermissionService permissionService)
 {
     this._campaignService = campaignService;
     this._dateTimeHelper = dateTimeHelper;
     this._emailAccountService = emailAccountService;
     this._emailAccountSettings = emailAccountSettings;
     this._newsLetterSubscriptionService = newsLetterSubscriptionService;
     this._localizationService = localizationService;
     this._messageTokenProvider = messageTokenProvider;
     this._permissionService = permissionService;
 }
 public CustomerRegistrationService(ICustomerService customerService,
     IEncryptionService encryptionService,
     INewsLetterSubscriptionService newsLetterSubscriptionService,
     ILocalizationService localizationService,
     IStoreService storeService,
     RewardPointsSettings rewardPointsSettings,
     CustomerSettings customerSettings)
 {
     _customerService = customerService;
     _encryptionService = encryptionService;
     _newsLetterSubscriptionService = newsLetterSubscriptionService;
     _localizationService = localizationService;
     _storeService = storeService;
     _rewardPointsSettings = rewardPointsSettings;
     _customerSettings = customerSettings;
 }
Example #52
0
        private readonly IVendorService _vendorService; //add by hz

        #endregion Fields

        #region Constructors

        public ExportManager(ICategoryService categoryService,
            IManufacturerService manufacturerService,
            IProductService productService,
            IPictureService pictureService,
            INewsLetterSubscriptionService newsLetterSubscriptionService,
            StoreInformationSettings vendorInformationSettings
            , IVendorService vendorService //add by hz
            )
        {
            this._categoryService = categoryService;
            this._manufacturerService = manufacturerService;
            this._productService = productService;
            this._pictureService = pictureService;
            this._newsLetterSubscriptionService = newsLetterSubscriptionService;
            this._storeInformationSettings = vendorInformationSettings;
            this._vendorService = vendorService;//add by hz
        }
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="customerService">Customer service</param>
 /// <param name="encryptionService">Encryption service</param>
 /// <param name="newsLetterSubscriptionService">Newsletter subscription service</param>
 /// <param name="localizationService">Localization service</param>
 /// <param name="storeService">Store service</param>
 /// <param name="rewardPointsSettings">Reward points settings</param>
 /// <param name="customerSettings">Customer settings</param>
 public CustomerRegistrationService(ICustomerService customerService, 
     IEncryptionService encryptionService, 
     INewsLetterSubscriptionService newsLetterSubscriptionService,
     ILocalizationService localizationService,
     IStoreService storeService,
     RewardPointsSettings rewardPointsSettings,
     CustomerSettings customerSettings,
     IDbContext dbContext)
 {
     this._customerService = customerService;
     this._encryptionService = encryptionService;
     this._newsLetterSubscriptionService = newsLetterSubscriptionService;
     this._localizationService = localizationService;
     this._storeService = storeService;
     this._rewardPointsSettings = rewardPointsSettings;
     this._customerSettings = customerSettings;
     this._dbContext = dbContext;
 }
Example #54
0
 public ImportManager(IProductService productService,
     ICategoryService categoryService,
     IManufacturerService manufacturerService,
     IPictureService pictureService,
     IUrlRecordService urlRecordService,
     IStoreContext storeContext,
     INewsLetterSubscriptionService newsLetterSubscriptionService,
     ICountryService countryService,
     IStateProvinceService stateProvinceService)
 {
     this._productService = productService;
     this._categoryService = categoryService;
     this._manufacturerService = manufacturerService;
     this._pictureService = pictureService;
     this._urlRecordService = urlRecordService;
     this._storeContext = storeContext;
     this._newsLetterSubscriptionService = newsLetterSubscriptionService;
     this._countryService = countryService;
     this._stateProvinceService = stateProvinceService;
 }
Example #55
0
 public ImportManager(IProductService productService,
     ICategoryService categoryService,
     IManufacturerService manufacturerService,
     IPictureService pictureService,
     IUrlRecordService urlRecordService,
     IStoreContext storeContext,
     INewsLetterSubscriptionService newsLetterSubscriptionService,
     ICountryService countryService,
     IStateProvinceService stateProvinceService,
     IEncryptionService encryptionService,
     IDataProvider dataProvider,
     MediaSettings mediaSettings,
     IVendorService vendorService,
     IProductTemplateService productTemplateService,
     IShippingService shippingService,
     ITaxCategoryService taxCategoryService,
     IMeasureService measureService,
     IProductAttributeService productAttributeService,
     CatalogSettings catalogSettings)
 {
     this._productService = productService;
     this._categoryService = categoryService;
     this._manufacturerService = manufacturerService;
     this._pictureService = pictureService;
     this._urlRecordService = urlRecordService;
     this._storeContext = storeContext;
     this._newsLetterSubscriptionService = newsLetterSubscriptionService;
     this._countryService = countryService;
     this._stateProvinceService = stateProvinceService;
     this._encryptionService = encryptionService;
     this._dataProvider = dataProvider;
     this._mediaSettings = mediaSettings;
     this._vendorService = vendorService;
     this._productTemplateService = productTemplateService;
     this._shippingService = shippingService;
     this._taxCategoryService = taxCategoryService;
     this._measureService = measureService;
     this._productAttributeService = productAttributeService;
     this._catalogSettings = catalogSettings;
 }
        public ExportManager(ICategoryService categoryService,
            IManufacturerService manufacturerService,
            IProductService productService,
			IProductTemplateService productTemplateService,
            IPictureService pictureService,
            INewsLetterSubscriptionService newsLetterSubscriptionService,
            ILanguageService languageService,
			MediaSettings mediaSettings,
			ICommonServices commonServices)
        {
            this._categoryService = categoryService;
            this._manufacturerService = manufacturerService;
            this._productService = productService;
			this._productTemplateService = productTemplateService;
            this._pictureService = pictureService;
            this._newsLetterSubscriptionService = newsLetterSubscriptionService;
            this._languageService = languageService;
			this._mediaSettings = mediaSettings;
			this._commonServices = commonServices;

			Logger = NullLogger.Instance;
        }
Example #57
0
        public new void SetUp()
        {
            _storeService = MockRepository.GenerateMock<IStoreService>();
            _categoryService = MockRepository.GenerateMock<ICategoryService>();
            _manufacturerService = MockRepository.GenerateMock<IManufacturerService>();
            _productAttributeService = MockRepository.GenerateMock<IProductAttributeService>();
            _pictureService = MockRepository.GenerateMock<IPictureService>();
            _newsLetterSubscriptionService = MockRepository.GenerateMock<INewsLetterSubscriptionService>();
            _productEditorSettings = new ProductEditorSettings();
            _workContext = MockRepository.GenerateMock<IWorkContext>();
            _vendorService = MockRepository.GenerateMock<IVendorService>();
            _productTemplateService = MockRepository.GenerateMock<IProductTemplateService>();
            _shippingService = MockRepository.GenerateMock<IShippingService>();
            _taxCategoryService = MockRepository.GenerateMock<ITaxCategoryService>();
            _measureService = MockRepository.GenerateMock<IMeasureService>();
            _catalogSettings=new CatalogSettings();

            _exportManager = new ExportManager(_categoryService,
                _manufacturerService, _productAttributeService, 
                _pictureService, _newsLetterSubscriptionService,
                _storeService, _workContext, _productEditorSettings, 
                _vendorService, _productTemplateService, _shippingService,
                _taxCategoryService, _measureService, _catalogSettings);
        }
Example #58
0
        public CustomerController(IAuthenticationService authenticationService,
            IDateTimeHelper dateTimeHelper,
            DateTimeSettings dateTimeSettings, 
            TaxSettings taxSettings,
            ILocalizationService localizationService,
            IWorkContext workContext,
            IStoreContext storeContext,
            ICustomerService customerService,
            IGenericAttributeService genericAttributeService,
            ICustomerRegistrationService customerRegistrationService,
            ITaxService taxService, RewardPointsSettings rewardPointsSettings,
            CustomerSettings customerSettings,AddressSettings addressSettings, ForumSettings forumSettings,
            OrderSettings orderSettings, IAddressService addressService,
            ICountryService countryService, IStateProvinceService stateProvinceService,
            IOrderTotalCalculationService orderTotalCalculationService,
            IOrderProcessingService orderProcessingService, IOrderService orderService,
            ICurrencyService currencyService, IPriceFormatter priceFormatter,
            IPictureService pictureService, INewsLetterSubscriptionService newsLetterSubscriptionService,
            IForumService forumService, IShoppingCartService shoppingCartService,
            IOpenAuthenticationService openAuthenticationService, 
            IBackInStockSubscriptionService backInStockSubscriptionService, 
            IDownloadService downloadService, IWebHelper webHelper,
            ICustomerActivityService customerActivityService, MediaSettings mediaSettings,
            IWorkflowMessageService workflowMessageService, LocalizationSettings localizationSettings,
            CaptchaSettings captchaSettings, ExternalAuthenticationSettings externalAuthenticationSettings)
        {
            this._authenticationService = authenticationService;
            this._dateTimeHelper = dateTimeHelper;
            this._dateTimeSettings = dateTimeSettings;
            this._taxSettings = taxSettings;
            this._localizationService = localizationService;
            this._workContext = workContext;
            this._storeContext = storeContext;
            this._customerService = customerService;
            this._genericAttributeService = genericAttributeService;
            this._customerRegistrationService = customerRegistrationService;
            this._taxService = taxService;
            this._rewardPointsSettings = rewardPointsSettings;
            this._customerSettings = customerSettings;
            this._addressSettings = addressSettings;
            this._forumSettings = forumSettings;
            this._orderSettings = orderSettings;
            this._addressService = addressService;
            this._countryService = countryService;
            this._stateProvinceService = stateProvinceService;
            this._orderProcessingService = orderProcessingService;
            this._orderTotalCalculationService = orderTotalCalculationService;
            this._orderService = orderService;
            this._currencyService = currencyService;
            this._priceFormatter = priceFormatter;
            this._pictureService = pictureService;
            this._newsLetterSubscriptionService = newsLetterSubscriptionService;
            this._forumService = forumService;
            this._shoppingCartService = shoppingCartService;
            this._openAuthenticationService = openAuthenticationService;
            this._backInStockSubscriptionService = backInStockSubscriptionService;
            this._downloadService = downloadService;
            this._webHelper = webHelper;
            this._customerActivityService = customerActivityService;

            this._mediaSettings = mediaSettings;
            this._workflowMessageService = workflowMessageService;
            this._localizationSettings = localizationSettings;
            this._captchaSettings = captchaSettings;
            this._externalAuthenticationSettings = externalAuthenticationSettings;
        }
        public new void SetUp()
        {
            _customerSettings = new CustomerSettings();
            _securitySettings = new SecuritySettings()
            {
                EncryptionKey = "273ece6f97dd844d"
            };
            _rewardPointsSettings = new RewardPointsSettings()
            {
                Enabled = false,
            };

            _encryptionService = new EncryptionService(_securitySettings);
            _customerRepo = MockRepository.GenerateMock<IRepository<Customer>>();
            var customer1 = new Customer()
            {
                Username = "******",
                Email = "*****@*****.**",
                PasswordFormat = PasswordFormat.Hashed,
                Active = true
            };

            string saltKey = _encryptionService.CreateSaltKey(5);
            string password = _encryptionService.CreatePasswordHash("password", saltKey);
            customer1.PasswordSalt = saltKey;
            customer1.Password = password;
            AddCustomerToRegisteredRole(customer1);

            var customer2 = new Customer()
            {
                Username = "******",
                Email = "*****@*****.**",
                PasswordFormat = PasswordFormat.Clear,
                Password = "******",
                Active = true
            };
            AddCustomerToRegisteredRole(customer2);

            var customer3 = new Customer()
            {
                Username = "******",
                Email = "*****@*****.**",
                PasswordFormat = PasswordFormat.Encrypted,
                Password = _encryptionService.EncryptText("password"),
                Active = true
            };
            AddCustomerToRegisteredRole(customer3);

            var customer4 = new Customer()
            {
                Username = "******",
                Email = "*****@*****.**",
                PasswordFormat = PasswordFormat.Clear,
                Password = "******",
                Active = true
            };
            AddCustomerToRegisteredRole(customer4);

            var customer5 = new Customer()
            {
                Username = "******",
                Email = "*****@*****.**",
                PasswordFormat = PasswordFormat.Clear,
                Password = "******",
                Active = true
            };

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

            _customerRepo.Expect(x => x.Table).Return(new List<Customer>() { customer1, customer2, customer3, customer4, customer5 }.AsQueryable());

            _customerRoleRepo = MockRepository.GenerateMock<IRepository<CustomerRole>>();
            _genericAttributeRepo = MockRepository.GenerateMock<IRepository<GenericAttribute>>();

            _genericAttributeService = MockRepository.GenerateMock<IGenericAttributeService>();
            _newsLetterSubscriptionService = MockRepository.GenerateMock<INewsLetterSubscriptionService>();

            _localizationService = MockRepository.GenerateMock<ILocalizationService>();
            _customerService = new CustomerService(new NopNullCache(), _customerRepo, _customerRoleRepo,
                _genericAttributeRepo, _genericAttributeService, _eventPublisher, _customerSettings);
            _customerRegistrationService = new CustomerRegistrationService(_customerService,
                _encryptionService, _newsLetterSubscriptionService, _localizationService,
                _rewardPointsSettings, _customerSettings);
        }
 public CustomerController(IAuthenticationService authenticationService,
     IDateTimeHelper dateTimeHelper,
     DateTimeSettings dateTimeSettings,
     TaxSettings taxSettings,
     ILocalizationService localizationService,
     IWorkContext workContext,
     IStoreContext storeContext,
     IStoreMappingService storeMappingService,
     ICustomerService customerService,
     ICustomerAttributeParser customerAttributeParser,
     ICustomerAttributeService customerAttributeService,
     IGenericAttributeService genericAttributeService,
     ICustomerRegistrationService customerRegistrationService,
     ITaxService taxService,
     RewardPointsSettings rewardPointsSettings,
     CustomerSettings customerSettings,
     AddressSettings addressSettings,
     ForumSettings forumSettings,
     OrderSettings orderSettings,
     IAddressService addressService,
     ICountryService countryService,
     IStateProvinceService stateProvinceService,
     IOrderService orderService,
     IPictureService pictureService,
     INewsLetterSubscriptionService newsLetterSubscriptionService,
     IShoppingCartService shoppingCartService,
     IOpenAuthenticationService openAuthenticationService,
     IDownloadService downloadService,
     IWebHelper webHelper,
     ICustomerActivityService customerActivityService,
     IAddressAttributeParser addressAttributeParser,
     IAddressAttributeService addressAttributeService,
     IAddressAttributeFormatter addressAttributeFormatter,
     IReturnRequestService returnRequestService,
     IEventPublisher eventPublisher,
     MediaSettings mediaSettings,
     IWorkflowMessageService workflowMessageService,
     LocalizationSettings localizationSettings,
     CaptchaSettings captchaSettings,
     SecuritySettings securitySettings,
     ExternalAuthenticationSettings externalAuthenticationSettings,
     StoreInformationSettings storeInformationSettings)
 {
     this._authenticationService = authenticationService;
     this._dateTimeHelper = dateTimeHelper;
     this._dateTimeSettings = dateTimeSettings;
     this._taxSettings = taxSettings;
     this._localizationService = localizationService;
     this._workContext = workContext;
     this._storeContext = storeContext;
     this._storeMappingService = storeMappingService;
     this._customerService = customerService;
     this._customerAttributeParser = customerAttributeParser;
     this._customerAttributeService = customerAttributeService;
     this._genericAttributeService = genericAttributeService;
     this._customerRegistrationService = customerRegistrationService;
     this._taxService = taxService;
     this._rewardPointsSettings = rewardPointsSettings;
     this._customerSettings = customerSettings;
     this._addressSettings = addressSettings;
     this._forumSettings = forumSettings;
     this._orderSettings = orderSettings;
     this._addressService = addressService;
     this._countryService = countryService;
     this._stateProvinceService = stateProvinceService;
     this._orderService = orderService;
     this._pictureService = pictureService;
     this._newsLetterSubscriptionService = newsLetterSubscriptionService;
     this._shoppingCartService = shoppingCartService;
     this._openAuthenticationService = openAuthenticationService;
     this._downloadService = downloadService;
     this._webHelper = webHelper;
     this._customerActivityService = customerActivityService;
     this._addressAttributeParser = addressAttributeParser;
     this._addressAttributeService = addressAttributeService;
     this._addressAttributeFormatter = addressAttributeFormatter;
     this._returnRequestService = returnRequestService;
     this._eventPublisher = eventPublisher;
     this._mediaSettings = mediaSettings;
     this._workflowMessageService = workflowMessageService;
     this._localizationSettings = localizationSettings;
     this._captchaSettings = captchaSettings;
     this._securitySettings = securitySettings;
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     this._storeInformationSettings = storeInformationSettings;
 }