public ExternalAuthenticationService(CustomerSettings customerSettings,
                                      ExternalAuthenticationSettings externalAuthenticationSettings,
                                      IAuthenticationService authenticationService,
                                      ICustomerActivityService customerActivityService,
                                      ICustomerRegistrationService customerRegistrationService,
                                      ICustomerService customerService,
                                      IEventPublisher eventPublisher,
                                      IGenericAttributeService genericAttributeService,
                                      ILocalizationService localizationService,
                                      IPluginFinder pluginFinder,
                                      IRepository <ExternalAuthenticationRecord> externalAuthenticationRecordRepository,
                                      IStoreContext storeContext,
                                      IWorkContext workContext,
                                      IWorkflowMessageService workflowMessageService,
                                      LocalizationSettings localizationSettings)
 {
     this._customerSettings = customerSettings;
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     this._authenticationService          = authenticationService;
     this._customerActivityService        = customerActivityService;
     this._customerRegistrationService    = customerRegistrationService;
     this._customerService         = customerService;
     this._eventPublisher          = eventPublisher;
     this._genericAttributeService = genericAttributeService;
     this._localizationService     = localizationService;
     this._pluginFinder            = pluginFinder;
     this._externalAuthenticationRecordRepository = externalAuthenticationRecordRepository;
     this._storeContext           = storeContext;
     this._workContext            = workContext;
     this._workflowMessageService = workflowMessageService;
     this._localizationSettings   = localizationSettings;
 }
 public ExternalAuthorizer(IAuthenticationService authenticationService,
                           IOpenAuthenticationService openAuthenticationService,
                           IGenericAttributeService genericAttributeService,
                           ICustomerRegistrationService customerRegistrationService,
                           ICustomerActivityService customerActivityService,
                           ILocalizationService localizationService,
                           IWorkContext workContext,
                           CustomerSettings customerSettings,
                           ExternalAuthenticationSettings externalAuthenticationSettings,
                           IEventPublisher eventPublisher,
                           LocalizationSettings localizationSettings, IWorkflowMessageService workflowMessageService)
 {
     _authenticationService       = authenticationService;
     _openAuthenticationService   = openAuthenticationService;
     _genericAttributeService     = genericAttributeService;
     _customerRegistrationService = customerRegistrationService;
     _customerActivityService     = customerActivityService;
     _localizationService         = localizationService;
     _workContext      = workContext;
     _customerSettings = customerSettings;
     _externalAuthenticationSettings = externalAuthenticationSettings;
     _eventPublisher         = eventPublisher;
     _localizationSettings   = localizationSettings;
     _workflowMessageService = workflowMessageService;
 }
Beispiel #3
0
 public UserController(ICustomerService CustomerService,
                       IWorkContext WorkContextService,
                       IAddressService addressService,
                       ICountryService countryService,
                       IStateProvinceService stateProvinceService,
                       ICustomerPasswordService Customerpasswordservice,
                       IAuthenticationService AuthenticationService,
                       ICustomerModelFactory CustomerModelFactory,
                       ICustomerRegistrationService CustomerRegistrationService,
                       IHttpContextAccessor httpContextAccessor,
                       IPermissionService permissionService,
                       IEncryptionService encryptionService)
 {
     this._customerService             = CustomerService;
     this._WorkContextService          = WorkContextService;
     this._addressService              = addressService;
     this._countryService              = countryService;
     this._stateProvinceService        = stateProvinceService;
     this._customerpasswordservice     = Customerpasswordservice;
     this._authenticationService       = AuthenticationService;
     this._customerModelFactory        = CustomerModelFactory;
     this._customerRegistrationService = CustomerRegistrationService;
     this._permissionService           = permissionService;
     this._httpContextAccessor         = httpContextAccessor;
     this._encryptionService           = encryptionService;
 }
        public ProcessRegistation(
            IMessageService messageService,
            IStoreContext storeContext,
            CustomerSettings customerSettings,
            ICustomerRegistrationService customerRegistrationService,
            IGenericAttributeService genericAttributeService,
            IAuthenticationService authenticationService,
            IWorkflowMessageService workflowMessageService,
            LocalizationSettings localizationSettings,
            IEventPublisher eventPublisher,
            ICustomerAttributeService customerAttributeService,
            ICustomerAttributeParser customerAttributeParser,
            IWorkContext workContext

            )
        {
            _messageService              = messageService;
            _customerSettings            = customerSettings;
            _storeContext                = storeContext;
            _customerRegistrationService = customerRegistrationService;
            _genericAttributeService     = genericAttributeService;
            _authenticationService       = authenticationService;
            _workflowMessageService      = workflowMessageService;
            _localizationSettings        = localizationSettings;
            _eventPublisher              = eventPublisher;
            _customerAttributeService    = customerAttributeService;
            _customerAttributeParser     = customerAttributeParser;

            _workContext = workContext;
        }
Beispiel #5
0
 public CustomerController(ICustomerRegistrationService customerRegistrationService,ICustomerService customerService,IAuthenticationService authenticationService, IWorkContext workContext)
 {
     _customerRegistrationService = customerRegistrationService;
     _customerService = customerService;
     _workContext = workContext;
     _authenticationService = authenticationService;
 }
 public CustomerController(IAuthenticationService authenticationService,
     ILocalizationService localizationService,
      IWorkContext workContext,
      ICustomerService customerService,
      ICustomerRegistrationService customerRegistrationService,
     CustomerSettings customerSettings,
      IAddressService addressService,
      IWebHelper webHelper,
      LocalizationSettings localizationSettings, 
     CaptchaSettings captchaSettings,
     SecuritySettings securitySettings,
     ExternalAuthenticationSettings externalAuthenticationSettings,
     ICustomerActivityService customerActivityService,
     DateTimeSettings dateTimeSettings,
     IDateTimeHelper dateTimeHelper,
     IGenericAttributeService genericAttributeService,
     IPermissionService permissionService)
 {
     this._authenticationService = authenticationService;
     this._localizationService = localizationService;
     this._workContext = workContext;
     this._customerRegistrationService = customerRegistrationService;
     this._customerService = customerService;
     this._customerSettings = customerSettings;
     this._addressService = addressService;
     this._webHelper = webHelper;
     this._localizationSettings = localizationSettings;
     this._captchaSettings = captchaSettings;
     this._securitySettings = securitySettings;
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     this._customerActivityService = customerActivityService;
     this._dateTimeSettings = dateTimeSettings;
     this._dateTimeHelper = dateTimeHelper;
     this._genericAttributeService = genericAttributeService;
 }
 public UserController(IAuthenticationService authenticationService,
                       ICustomerModelFactory customerModelFactory,
                       IWorkContext workContext,
                       ICustomerService customerService,
                       ICustomerRegistrationService customerRegistrationService,
                       IGenericAttributeService genericAttributeService,
                       ILocalizationService localizationService,
                       IWebHelper webHelper,
                       CustomerSettings customerSettings,
                       ICustomerActivityService customerActivityService,
                       IEventPublisher eventPublisher,
                       CaptchaSettings captchaSettings,
                       IPermissionService permissionService,
                       IUsersService usersService)
 {
     this._authenticationService       = authenticationService;
     this._customerModelFactory        = customerModelFactory;
     this._workContext                 = workContext;
     this._customerService             = customerService;
     this._customerRegistrationService = customerRegistrationService;
     this._webHelper               = webHelper;
     this._customerSettings        = customerSettings;
     this._captchaSettings         = captchaSettings;
     this._eventPublisher          = eventPublisher;
     this._customerActivityService = customerActivityService;
     this._localizationService     = localizationService;
     this._genericAttributeService = genericAttributeService;
     this._permissionService       = permissionService;
     this._usersService            = usersService;
 }
 public ExternalAuthorizer(IAuthenticationService authenticationService,
     IOpenAuthenticationService openAuthenticationService,
     IGenericAttributeService genericAttributeService,
     ICustomerRegistrationService customerRegistrationService, 
     ICustomerActivityService customerActivityService, 
     ILocalizationService localizationService,
     IWorkContext workContext,
     IStoreContext storeContext,
     CustomerSettings customerSettings,
     ExternalAuthenticationSettings externalAuthenticationSettings,
     IShoppingCartService shoppingCartService,
     IWorkflowMessageService workflowMessageService,
     IEventPublisher eventPublisher,
     LocalizationSettings localizationSettings)
 {
     this._authenticationService = authenticationService;
     this._openAuthenticationService = openAuthenticationService;
     this._genericAttributeService = genericAttributeService;
     this._customerRegistrationService = customerRegistrationService;
     this._customerActivityService = customerActivityService;
     this._localizationService = localizationService;
     this._workContext = workContext;
     this._storeContext = storeContext;
     this._customerSettings = customerSettings;
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     this._shoppingCartService = shoppingCartService;
     this._workflowMessageService = workflowMessageService;
     this._eventPublisher = eventPublisher;
     this._localizationSettings = localizationSettings;
 }
Beispiel #9
0
 public ChaseOutboundParsePollingAgent(IOutboundUploadRepository outboundUploadRepository, IUniqueItemRepository <File> fileRepository, IPipeDelimitedReportHelper pipeDelimitedReportHelper, ILogManager logManager,
                                       ILanguageRepository languageRepository, IChaseOutboundFactory chaseOutboundFactory, IChaseProductRepository chaseProductRepository, IChaseChannelLevelRepository chaseChannelLevelRepository,
                                       IChaseGroupRepository chaseGroupRepository, IChaseCampaignRepository chaseCampaignRepository, IChaseCampaignTypeRepository chaseCampaignTypeRepository, IRelationshipRepository relationshipRepository, IMediaRepository mediaRepository,
                                       IChaseOutboundRepository chaseOutboundRepository, ISettings settings, IUniqueItemRepository <CorporateAccount> corporateAccountRepository, ILabRepository labRepository, ICustomerRegistrationService customerRegistrationService,
                                       IOrganizationRoleUserRepository organizationRoleUserRepository, IStateRepository stateRepository, ICustomerRepository customerRepository, ICorporateCustomerCustomTagService corporateCustomerCustomTagService, IAddressService addressService, IActivityTypeRepository activityTypeRepository)
 {
     _outboundUploadRepository    = outboundUploadRepository;
     _fileRepository              = fileRepository;
     _pipeDelimitedReportHelper   = pipeDelimitedReportHelper;
     _languageRepository          = languageRepository;
     _chaseOutboundFactory        = chaseOutboundFactory;
     _chaseProductRepository      = chaseProductRepository;
     _chaseChannelLevelRepository = chaseChannelLevelRepository;
     _chaseGroupRepository        = chaseGroupRepository;
     _chaseCampaignRepository     = chaseCampaignRepository;
     _chaseCampaignTypeRepository = chaseCampaignTypeRepository;
     _relationshipRepository      = relationshipRepository;
     _mediaRepository             = mediaRepository;
     _chaseOutboundRepository     = chaseOutboundRepository;
     _corporateAccountRepository  = corporateAccountRepository;
     _labRepository = labRepository;
     _customerRegistrationService    = customerRegistrationService;
     _organizationRoleUserRepository = organizationRoleUserRepository;
     _stateRepository    = stateRepository;
     _customerRepository = customerRepository;
     _corporateCustomerCustomTagService = corporateCustomerCustomTagService;
     _addressService         = addressService;
     _logger                 = logManager.GetLogger("Chase_Outbound_Import");
     _activityTypeRepository = activityTypeRepository;
     _accountIds             = settings.FloridaBlueAccountId;
 }
 public CustomerController(ICustomerRegistrationService customerRegistrationService, UserManager <ApplicationUser> userManger, IUserService userService, IRoleService roleService)
 {
     _userManager = userManger;
     _userService = userService;
     _customerRegistrationService = customerRegistrationService;
     _roleService = roleService;
 }
 public CustomerController(ICustomerService customerService,
                           ICustomerViewModelService customerViewModelService,
                           IGenericAttributeService genericAttributeService,
                           ICustomerRegistrationService customerRegistrationService,
                           ICustomerReportService customerReportService,
                           ILocalizationService localizationService,
                           CustomerSettings customerSettings,
                           IWorkContext workContext,
                           IExportManager exportManager,
                           ICustomerAttributeParser customerAttributeParser,
                           ICustomerAttributeService customerAttributeService,
                           IAddressAttributeParser addressAttributeParser,
                           IAddressAttributeService addressAttributeService,
                           IWorkflowMessageService workflowMessageService,
                           IDownloadService downloadService)
 {
     this._customerService             = customerService;
     this._customerViewModelService    = customerViewModelService;
     this._genericAttributeService     = genericAttributeService;
     this._customerRegistrationService = customerRegistrationService;
     this._customerReportService       = customerReportService;
     this._localizationService         = localizationService;
     this._customerSettings            = customerSettings;
     this._workContext              = workContext;
     this._exportManager            = exportManager;
     this._customerAttributeParser  = customerAttributeParser;
     this._customerAttributeService = customerAttributeService;
     this._addressAttributeParser   = addressAttributeParser;
     this._addressAttributeService  = addressAttributeService;
     this._workflowMessageService   = workflowMessageService;
     this._downloadService          = downloadService;
 }
Beispiel #12
0
 public OnlinePaymentController(ITempcartService tempcartService, ICustomerRepository customerRepository, IProspectCustomerService prospectCustomerService
                                , IEligibilityService eligibilityService, IChargeCardRepository chargeCardRepository, IEventSchedulerService eventSchedulerService, IConfigurationSettingRepository configurationSettingRepository
                                , ISettings settings, IValidator <PaymentInstrumentEditModel> paymentValidator, IEventSchedulingSlotService slotService, IAddressService addressService, IStateRepository stateRepository
                                , ICustomerService customerService, IPaymentController paymentController, ICorporateAccountRepository corporateAccountRepository, IEmailNotificationModelsFactory emailNotificationModelsFactory
                                , IEventRepository eventRepository, ICustomerRegistrationService customerRegistrationService, INotifier notifier, ICallQueueCustomerRepository callQueueCustomerRepository, IEventSchedulingSlotService eventSchedulingSlotService, IGiftCertificateService giftCertificateService, IUniqueItemRepository <ProspectCustomer> uniqueItemRepository, IToolTipRepository toolTipRepository
                                )
 {
     _tempcartService         = tempcartService;
     _customerRepository      = customerRepository;
     _prospectCustomerService = prospectCustomerService;
     _eligibilityService      = eligibilityService;
     _chargeCardRepository    = chargeCardRepository;
     _eventSchedulerService   = eventSchedulerService;
     _settings                       = settings;
     _paymentValidator               = paymentValidator;
     _slotService                    = slotService;
     _addressService                 = addressService;
     _stateRepository                = stateRepository;
     _customerService                = customerService;
     _paymentController              = paymentController;
     _corporateAccountRepository     = corporateAccountRepository;
     _emailNotificationModelsFactory = emailNotificationModelsFactory;
     _eventRepository                = eventRepository;
     _customerRegistrationService    = customerRegistrationService;
     _notifier                       = notifier;
     _callQueueCustomerRepository    = callQueueCustomerRepository;
     _eventSchedulingSlotService     = eventSchedulingSlotService;
     _giftCertificateService         = giftCertificateService;
     _configurationSettingRepository = configurationSettingRepository;
     _enableTexting                  = Convert.ToBoolean(configurationSettingRepository.GetConfigurationValue(ConfigurationSettingName.EnableSmsNotification));
     _prospectCustomerRepository     = uniqueItemRepository;
     _toolTipRepository              = toolTipRepository;
 }
Beispiel #13
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;
 }
Beispiel #14
0
 public ExternalAuthenticationService(CustomerSettings customerSettings,
     ExternalAuthenticationSettings externalAuthenticationSettings,
     IActionContextAccessor actionContextAccessor,
     IAuthenticationPluginManager authenticationPluginManager,
     ICustomerRegistrationService customerRegistrationService,
     ICustomerService customerService,
     IEventPublisher eventPublisher,
     IGenericAttributeService genericAttributeService,
     IHttpContextAccessor httpContextAccessor,
     ILocalizationService localizationService,
     IRepository<ExternalAuthenticationRecord> externalAuthenticationRecordRepository,
     IStoreContext storeContext,
     IUrlHelperFactory urlHelperFactory,
     IWorkContext workContext,
     IWorkflowMessageService workflowMessageService,
     LocalizationSettings localizationSettings)
 {
     _customerSettings = customerSettings;
     _externalAuthenticationSettings = externalAuthenticationSettings;
     _actionContextAccessor = actionContextAccessor;
     _authenticationPluginManager = authenticationPluginManager;
     _customerRegistrationService = customerRegistrationService;
     _customerService = customerService;
     _eventPublisher = eventPublisher;
     _genericAttributeService = genericAttributeService;
     _httpContextAccessor = httpContextAccessor;
     _localizationService = localizationService;
     _externalAuthenticationRecordRepository = externalAuthenticationRecordRepository;
     _storeContext = storeContext;
     _urlHelperFactory = urlHelperFactory;
     _workContext = workContext;
     _workflowMessageService = workflowMessageService;
     _localizationSettings = localizationSettings;
 }
 public ExternalAuthenticationService(CustomerSettings customerSettings,
                                      ExternalAuthenticationSettings externalAuthenticationSettings,
                                      IAuthenticationService authenticationService,
                                      ICustomerActivityService customerActivityService,
                                      ICustomerRegistrationService customerRegistrationService,
                                      ICustomerService customerService,
                                      IEventPublisher eventPublisher,
                                      IGenericAttributeService genericAttributeService,
                                      ILocalizationService localizationService,
                                      IPluginService pluginService,
                                      IRepository <ExternalAuthenticationRecord> externalAuthenticationRecordRepository,
                                      IShoppingCartService shoppingCartService,
                                      IStoreContext storeContext,
                                      IWorkContext workContext,
                                      IWorkflowMessageService workflowMessageService,
                                      LocalizationSettings localizationSettings)
 {
     _customerSettings = customerSettings;
     _externalAuthenticationSettings = externalAuthenticationSettings;
     _authenticationService          = authenticationService;
     _customerActivityService        = customerActivityService;
     _customerRegistrationService    = customerRegistrationService;
     _customerService         = customerService;
     _eventPublisher          = eventPublisher;
     _genericAttributeService = genericAttributeService;
     _localizationService     = localizationService;
     _pluginService           = pluginService;
     _externalAuthenticationRecordRepository = externalAuthenticationRecordRepository;
     _shoppingCartService    = shoppingCartService;
     _storeContext           = storeContext;
     _workContext            = workContext;
     _workflowMessageService = workflowMessageService;
     _localizationSettings   = localizationSettings;
 }
Beispiel #16
0
        public DemoController(IAuthenticationService authenticationService, ICustomerService customerService,
                              ICustomerRegistrationService customerRegistrationService,
                              IGenericAttributeService genericAttributeService,
                              IWorkflowMessageService workflowMessageService,
                              IWebHelper webHelper,
                              IWorkContext workContext, IStoreService storeService, ICategoryService categoryService, IProductService productService, IPictureService pictureService,
                              CustomerSettings customerSettings, CommonSettings commonSettings, ISettingService settingService
                              )
        {
            _authenticationService       = authenticationService;
            _customerService             = customerService;
            _customerRegistrationService = customerRegistrationService;
            _genericAttributeService     = genericAttributeService;
            _workflowMessageService      = workflowMessageService;

            _webHelper        = webHelper;
            _workContext      = workContext;
            _customerSettings = customerSettings;

            _commonSettings = commonSettings;

            _storeService    = storeService;
            _categoryService = categoryService;
            _productService  = productService;
            _pictureService  = pictureService;
            _settingService  = settingService;
        }
 public ExternalAuthorizer(IAuthenticationService authenticationService,
                           IOpenAuthenticationService openAuthenticationService,
                           IGenericAttributeService genericAttributeService,
                           ICustomerRegistrationService customerRegistrationService,
                           ICustomerActivityService customerActivityService,
                           ILocalizationService localizationService,
                           IWorkContext workContext,
                           IStoreContext storeContext,
                           CustomerSettings customerSettings,
                           ExternalAuthenticationSettings externalAuthenticationSettings,
                           IShoppingCartService shoppingCartService,
                           IWorkflowMessageService workflowMessageService,
                           IEventPublisher eventPublisher,
                           LocalizationSettings localizationSettings,
                           IPictureService pictureService)
 {
     this._authenticationService       = authenticationService;
     this._openAuthenticationService   = openAuthenticationService;
     this._genericAttributeService     = genericAttributeService;
     this._customerRegistrationService = customerRegistrationService;
     this._customerActivityService     = customerActivityService;
     this._localizationService         = localizationService;
     this._workContext      = workContext;
     this._storeContext     = storeContext;
     this._customerSettings = customerSettings;
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     this._shoppingCartService            = shoppingCartService;
     this._workflowMessageService         = workflowMessageService;
     this._eventPublisher       = eventPublisher;
     this._localizationSettings = localizationSettings;
     _pictureService            = pictureService;
 }
 public ExternalAuthorizer(
     IAuthenticationService authenticationService,
     IOpenAuthenticationService openAuthenticationService,
     IGenericAttributeService genericAttributeService,
     ICustomerRegistrationService customerRegistrationService,
     ICustomerActivityService customerActivityService,
     ILocalizationService localizationService,
     IWorkContext workContext,
     CustomerSettings customerSettings,
     ExternalAuthenticationSettings externalAuthenticationSettings,
     IShoppingCartService shoppingCartService,
     IMessageFactory messageFactory,
     LocalizationSettings localizationSettings)
 {
     _authenticationService       = authenticationService;
     _openAuthenticationService   = openAuthenticationService;
     _genericAttributeService     = genericAttributeService;
     _customerRegistrationService = customerRegistrationService;
     _customerActivityService     = customerActivityService;
     _localizationService         = localizationService;
     _workContext      = workContext;
     _customerSettings = customerSettings;
     _externalAuthenticationSettings = externalAuthenticationSettings;
     _shoppingCartService            = shoppingCartService;
     _messageFactory       = messageFactory;
     _localizationSettings = localizationSettings;
 }
 public NghiepVuLeTanController(IChonVeService chonveService,
                                IStateProvinceService stateProvinceService,
                                INhaXeService nhaxeService,
                                INhanVienService nhanvienService,
                                ILocalizationService localizationService,
                                IPermissionService permissionService,
                                IWorkContext workContext,
                                IPictureService pictureService,
                                ICustomerService customerService,
                                IBenXeService benxeService,
                                IDiaChiService diachiService,
                                IGenericAttributeService genericAttributeService,
                                ICustomerRegistrationService CustomerRegistrationService,
                                CustomerSettings customerSettings
                                )
 {
     this._nhanvienService             = nhanvienService;
     this._chonveService               = chonveService;
     this._stateProvinceService        = stateProvinceService;
     this._nhaxeService                = nhaxeService;
     this._localizationService         = localizationService;
     this._permissionService           = permissionService;
     this._workContext                 = workContext;
     this._pictureService              = pictureService;
     this._customerService             = customerService;
     this._benxeService                = benxeService;
     this._diachiService               = diachiService;
     this._genericAttributeService     = genericAttributeService;
     this._customerRegistrationService = CustomerRegistrationService;
     this._customerSettings            = customerSettings;
 }
Beispiel #20
0
 public HomeController(
     CaptchaSettings captchaSettings,
     CustomerSettings customerSettings,
     ICustomerService customerService,
     LocalizationSettings localizationSettings,
     ICustomerRegistrationService customerRegistrationService,
     IAuthenticationService authenticationService,
     IEventPublisher eventPublisher,
     ILocalizationService localizationService,
     ICustomerActivityService customerActivityService,
     INotificationService notificationService,
     ICustomerModelFactory customerModelFactory,
     IWebHelper webHelper
     )
 {
     this._webHelper                   = webHelper;
     this._notificationService         = notificationService;
     this._eventPublisher              = eventPublisher;
     this._captchaSettings             = captchaSettings;
     this._customerSettings            = customerSettings;
     this._customerService             = customerService;
     this._localizationSettings        = localizationSettings;
     this._localizationService         = localizationService;
     this._customerRegistrationService = customerRegistrationService;
     this._authenticationService       = authenticationService;
     this._customerActivityService     = customerActivityService;
     this._customerModelFactory        = customerModelFactory;
 }
Beispiel #21
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="customerSettings">Customer settings</param>
 /// <param name="externalAuthenticationSettings">External authentication settings</param>
 /// <param name="authenticationService">Authentication service</param>
 /// <param name="customerActivityService">Customer activity service</param>
 /// <param name="customerRegistrationService">Customer registration service</param>
 /// <param name="customerService">Customer service</param>
 /// <param name="eventPublisher">Event publisher</param>
 /// <param name="genericAttributeService">Generic attribute service</param>
 /// <param name="localizationService">Localization service</param>
 /// <param name="pluginService">Plugin finder</param>
 /// <param name="externalAuthenticationRecordRepository">External authentication record repository</param>
 /// <param name="shoppingCartService">Shopping cart service</param>
 /// <param name="storeContext">Store context</param>
 /// <param name="workContext">Work context</param>
 /// <param name="workflowMessageService">Workflow message service</param>
 /// <param name="localizationSettings">Localization settings</param>
 public ExternalAuthenticationService_Override(
     CustomerSettings customerSettings,
     ExternalAuthenticationSettings externalAuthenticationSettings,
     IAuthenticationPluginManager authenticationPluginManager,
     ICustomerRegistrationService customerRegistrationService,
     ICustomerService customerService,
     IEventPublisher eventPublisher,
     IGenericAttributeService genericAttributeService,
     ILocalizationService localizationService,
     IRepository <ExternalAuthenticationRecord> externalAuthenticationRecordRepository,
     IStoreContext storeContext,
     IWorkContext workContext,
     IWorkflowMessageService workflowMessageService,
     LocalizationSettings localizationSettings
     ) : base(
         customerSettings,
         externalAuthenticationSettings,
         authenticationPluginManager,
         customerRegistrationService,
         customerService,
         eventPublisher,
         genericAttributeService,
         localizationService,
         externalAuthenticationRecordRepository,
         storeContext,
         workContext,
         workflowMessageService,
         localizationSettings)
 {
     this._customerService             = customerService;
     this._workContext                 = workContext;
     this._authenticationPluginManager = authenticationPluginManager;
 }
Beispiel #22
0
 public CustomerController(ICustomerRegistrationService customerRegistrationService, ICustomerService customerService, IAuthenticationService authenticationService, IWorkContext workContext)
 {
     _customerRegistrationService = customerRegistrationService;
     _customerService             = customerService;
     _workContext           = workContext;
     _authenticationService = authenticationService;
 }
Beispiel #23
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 CustomerRegistrationController(IConfiguration configuration, ICustomerRegistrationService customerRegistrationService)
        {
            _configuration = configuration;

            connectionString = _configuration.GetConnectionString("DefaultConnection");

            _customerRegistrationService = customerRegistrationService;
        }
 public MessageController(IFaraBotUserService BotService, IWebHelper webHelper, IFaraBotConfigService BotConfigService, ICustomerRegistrationService CustomerService, CustomerSettings customerSettings)
 {
     _BotUserService   = BotService;
     _BotConfigService = BotConfigService;
     _CustomerService  = CustomerService;
     _customerSettings = customerSettings;
     _webHelper        = webHelper;
 }
Beispiel #26
0
        public LApiController(ICacheManager cacheManager,
            RestServiceSettings settings,
            IStateProvinceService stateProvinceService,
            INhaXeService nhaxeService,
            ILocalizationService localizationService,
            IWorkContext workContext,
             IPhieuGuiHangService phieuguihangService,
            IHangHoaService hanghoaService,
            ICustomerService customerService,
            IChonVeService chonveService,
            IDiaChiService diachiService,
            INhanVienService nhanvienService,
            IPermissionService permissionService,
            CustomerSettings customerSettings,
            ICustomerRegistrationService customerRegistrationService,
            ICustomerActivityService customerActivityService,
            IGenericAttributeService genericAttributeService,
            IXeInfoService xeinfoService,
            IHanhTrinhService hanhtrinhService,
            IPriceFormatter priceFormatter,
            IBenXeService benxeService,
             IVeXeService vexeService,
            IPhoiVeService phoiveService,
            IShoppingCartService shoppingCartService,
            IAuthenticationService authenticationService,
            INhaXeCustomerService nhaxecustomerService,
            ILimousineBanVeService limousinebanveService
            )
        {
            this._cacheManager = cacheManager;
            this._limousinebanveService = limousinebanveService;
            this._settings = settings;
            this._stateProvinceService = stateProvinceService;
            this._nhaxeService = nhaxeService;
            this._hanghoaService = hanghoaService;
            this._phieuguihangService = phieuguihangService;
            this._localizationService = localizationService;
            this._workContext = workContext;
            this._customerService = customerService;
            this._chonveService = chonveService;
            this._diachiService = diachiService;
            this._nhanvienService = nhanvienService;
            this._permissionService = permissionService;
            this._customerSettings = customerSettings;
            this._customerRegistrationService = customerRegistrationService;
            this._customerActivityService = customerActivityService;
            this._genericAttributeService = genericAttributeService;
            this._xeinfoService = xeinfoService;
            this._hanhtrinhService = hanhtrinhService;
            this._priceFormatter = priceFormatter;
            this._benxeService = benxeService;
            this._vexeService = vexeService;
            this._phoiveService = phoiveService;
            this._shoppingCartService = shoppingCartService;
            this._authenticationService = authenticationService;
            this._nhaxecustomerService = nhaxecustomerService;

        }
Beispiel #27
0
 public CustomersController(ICustomerService customerService, ICustomerReportService customerReportService, ICustomerRegistrationService customerRegistrationService,
                            ICustomerAttributeService customerAttributeService, ICustomerAttributeParser customerAttributeParser)
 {
     this._customerService             = customerService;
     this._customerReportService       = customerReportService;
     this._customerRegistrationService = customerRegistrationService;
     this._customerAttributeService    = customerAttributeService;
     this._customerAttributeParser     = customerAttributeParser;
 }
 public CustomerController(ICustomerApiService customerApiService, IPermissionService permissionService,
                           ICustomerRegistrationService customerRegistrationService,
                           CustomerSettings customerSettings)
 {
     _customerApiService          = customerApiService;
     _customerRegistrationService = customerRegistrationService;
     _customerSettings            = customerSettings;
     _permissionService           = permissionService;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CustomerController"/> class.
 /// </summary>
 /// <param name="authenticationService">The authentication service.</param>
 /// <param name="workContext">The work context.</param>
 /// <param name="customerService">The customer service.</param>
 /// <param name="webHelper">The web helper.</param>
 /// <param name="customerRegistrationService">The customer registration service.</param>
 public CustomerController(IAuthenticationService authenticationService,
     IWorkContext workContext,
     ICustomerService customerService,
     IWebHelper webHelper, ICustomerRegistrationService customerRegistrationService)
 {
     this._authenticationService = authenticationService;
     this._workContext = workContext;
     this._customerService = customerService;
     this._webHelper = webHelper;
     _customerRegistrationService = customerRegistrationService;
 }
Beispiel #30
0
        public CustomerController(IAuthenticationService authenticationService,
            IDateTimeHelper dateTimeHelper,
            DateTimeSettings dateTimeSettings, TaxSettings taxSettings,
            ILocalizationService localizationService,
            IWorkContext workContext, ICustomerService customerService,
            ICustomerRegistrationService customerRegistrationService,
            ITaxService taxService, RewardPointsSettings rewardPointsSettings,
            CustomerSettings customerSettings, 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, 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._customerService = customerService;
            this._customerRegistrationService = customerRegistrationService;
            this._taxService = taxService;
            this._rewardPointsSettings = rewardPointsSettings;
            this._customerSettings = customerSettings;
            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._mediaSettings = mediaSettings;
            this._workflowMessageService = workflowMessageService;
            this._localizationSettings = localizationSettings;
            this._captchaSettings = captchaSettings;
            this._externalAuthenticationSettings = externalAuthenticationSettings;
        }
Beispiel #31
0
 public SubAccountAddCommandHandler(
     ICustomerService customerService,
     ICustomerRegistrationService customerRegistrationService,
     IGenericAttributeService genericAttributeService,
     CustomerSettings customerSettings)
 {
     _customerService             = customerService;
     _customerRegistrationService = customerRegistrationService;
     _genericAttributeService     = genericAttributeService;
     _customerSettings            = customerSettings;
 }
 public CustomerController(
     IMediator mediator,
     IPermissionService permissionService,
     ICustomerRegistrationService customerRegistrationService,
     CustomerSettings customerSettings)
 {
     _mediator = mediator;
     _customerRegistrationService = customerRegistrationService;
     _customerSettings            = customerSettings;
     _permissionService           = permissionService;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CustomerController"/> class.
 /// </summary>
 /// <param name="authenticationService">The authentication service.</param>
 /// <param name="workContext">The work context.</param>
 /// <param name="cacheManager"></param>
 /// <param name="customerService">The customer service.</param>
 /// <param name="webHelper">The web helper.</param>
 /// <param name="customerRegistrationService">The customer registration service.</param>
 public CustomerController(IAuthenticationService authenticationService,
                           IWorkContext workContext, ICacheManager cacheManager, IEncryptionService encryptionService,
                           ICustomerService customerService,
                           IWebHelper webHelper,
                           ICustomerRegistrationService customerRegistrationService)
 {
     this._authenticationService       = authenticationService;
     this._workContext                 = workContext;
     this._cacheManager                = cacheManager; this._encryptionService = encryptionService;
     this._customerService             = customerService;
     this._webHelper                   = webHelper;
     this._customerRegistrationService = customerRegistrationService;
 }
Beispiel #34
0
 public CustomerController(IWorkContext workContext, ICustomerService customerService, ICustomerRegistrationService customerRegistrationService, ICustomerActivityService customerActivityService, IAuthenticationService authenticationService, IEventPublisher eventPublisher, ILocalizationService localizationService, CommonSettings commonSettings, BlogInformationSettings blogInformationSettings, CustomerSettings customerSettings)
 {
     _workContext                 = workContext;
     _customerService             = customerService;
     _customerRegistrationService = customerRegistrationService;
     _customerActivityService     = customerActivityService;
     _authenticationService       = authenticationService;
     _eventPublisher              = eventPublisher;
     _localizationService         = localizationService;
     _commonSettings              = commonSettings;
     _blogInformationSettings     = blogInformationSettings;
     _customerSettings            = customerSettings;
 }
Beispiel #35
0
 public BankController(ILocalizationService localizationService,
                       ICustomerService customerService,
                       IPictureService pictureService,
                       ICustomerRegistrationService customerRegistrationService,
                       CustomerSettings customerSettings,
                       IProductService productService)
 {
     this._localizationService         = localizationService;
     this._customerService             = customerService;
     this._pictureService              = pictureService;
     this._customerRegistrationService = customerRegistrationService;
     this._customerSettings            = customerSettings;
     this._productService              = productService;
 }
 public CustomerController(ICustomerService customerService,
     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, 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)
 {
     this._customerService = customerService;
     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._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;
 }
Beispiel #37
0
 public NasService()
 {
     _addressService = EngineContext.Current.Resolve<IAddressService>();
     _countryService = EngineContext.Current.Resolve<ICountryService>();
     _stateProvinceService = EngineContext.Current.Resolve<IStateProvinceService>();
     _customerService = EngineContext.Current.Resolve<ICustomerService>();
     _customerRegistrationService = EngineContext.Current.Resolve<ICustomerRegistrationService>();
     _customerSettings = EngineContext.Current.Resolve<CustomerSettings>();
     _permissionSettings = EngineContext.Current.Resolve<IPermissionService>();
     _orderProcessingService = EngineContext.Current.Resolve<IOrderProcessingService>();
     _orderService = EngineContext.Current.Resolve<IOrderService>();
     _authenticationService = EngineContext.Current.Resolve<IAuthenticationService>();
     _workContext = EngineContext.Current.Resolve<IWorkContext>();
     _pluginFinder = EngineContext.Current.Resolve<IPluginFinder>();
 }
 public ExternalAuthorizer(IAuthenticationService authenticationService,
     IOpenAuthenticationService openAuthenticationService,
     ICustomerRegistrationService customerRegistrationService, 
     ICustomerActivityService customerActivityService, ILocalizationService localizationService,
     IWorkContext workContext, CustomerSettings customerSettings,
     ExternalAuthenticationSettings externalAuthenticationSettings,
     LocalizationSettings localizationSettings)
 {
     this._authenticationService = authenticationService;
     this._openAuthenticationService = openAuthenticationService;
     this._customerRegistrationService = customerRegistrationService;
     this._customerActivityService = customerActivityService;
     this._localizationService = localizationService;
     this._workContext = workContext;
     this._customerSettings = customerSettings;
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     this._localizationSettings = localizationSettings;
 }
Beispiel #39
0
 public ExternalAuthorizer(IAuthenticationService authenticationService,
     IOpenAuthenticationService openAuthenticationService,
     ICustomerService customerService,
     ICustomerRegistrationService customerRegistrationService, 
     IWorkContext workContext, CustomerSettings customerSettings,
     ExternalAuthenticationSettings externalAuthenticationSettings,
     IShoppingCartService shoppingCartService,
     IWorkflowMessageService workflowMessageService, LocalizationSettings localizationSettings)
 {
     this._authenticationService = authenticationService;
     this._openAuthenticationService = openAuthenticationService;
     this._customerService = customerService;
     this._customerRegistrationService = customerRegistrationService;
     this._workContext = workContext;
     this._customerSettings = customerSettings;
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     this._shoppingCartService = shoppingCartService;
     this._workflowMessageService = workflowMessageService;
     this._localizationSettings = localizationSettings;
 }
 public CustomerAdminController(IPermissionService permissionService, 
     ICustomerService customerService,
     CustomerSettings customerSettings,
     ILocalizationService localizationService,
     IDateTimeHelper dateTimeHelper,
     DateTimeSettings dateTimeSettings,
     IOpenAuthenticationService openAuthenticationService,
     IGenericAttributeService genericAttributeService,
     ICustomerActivityService customerActivityService,
     ICustomerRegistrationService customerRegistrationService,
     IWorkContext workContext)
 {
     this._permissionService = permissionService;
     this._customerService = customerService;
     this._customerSettings = customerSettings;
     this._localizationService = localizationService;
     this._dateTimeHelper = dateTimeHelper;
     this._dateTimeSettings = dateTimeSettings;
     this._openAuthenticationService = openAuthenticationService;
     this._genericAttributeService = genericAttributeService;
     this._customerActivityService = customerActivityService;
     this._customerRegistrationService = customerRegistrationService;
     this._workContext = workContext;
 }
 public AccountController(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,
     MediaSettings mediaSettings,
     IWorkflowMessageService workflowMessageService,
     LocalizationSettings localizationSettings,
     CaptchaSettings captchaSettings,
     SecuritySettings securitySettings,
     ExternalAuthenticationSettings externalAuthenticationSettings,
     IMultitenantService vendorService,
     IGroupDealService groupDealService,
     ICategoryService categoryService,
     IVendorAddressService vendorAddressService,
     IProductService productService,
     IStoreService storeService,
     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._mediaSettings = mediaSettings;
     this._workflowMessageService = workflowMessageService;
     this._localizationSettings = localizationSettings;
     this._captchaSettings = captchaSettings;
     this._securitySettings = securitySettings;
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     this._categories = new System.Collections.Generic.List<DTOs.Category>();
     this._vendorService = vendorService;
     this._groupDealService = groupDealService;
     this._categoryService = categoryService;
     this._vendorAddressService = vendorAddressService;
     this._productService = productService;
     this._storeService = storeService;
     this._storeInformationSettings = storeInformationSettings;
 }
 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;
 }
Beispiel #43
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 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);
        }