Пример #1
0
 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;
 }
Пример #2
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;
 }
Пример #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 WorkerController(ICustomerService customerService,
                         ICustomerModelFactory customerModelFactory,
                         IUserService userService)
 {
     _customerService      = customerService;
     _customerModelFactory = customerModelFactory;
     _userService          = userService;
 }
Пример #5
0
        public async Task SetUp()
        {
            _customerModelFactory = GetService <ICustomerModelFactory>();
            _customer             = await GetService <IWorkContext>().GetCurrentCustomerAsync();

            _customerAttributeService = GetService <ICustomerAttributeService>();

            _customerAttributes = new[]
            {
                new CustomerAttribute
                {
                    AttributeControlType = AttributeControlType.Checkboxes, Name = "Test customer attribute 1"
                },
                new CustomerAttribute
                {
                    AttributeControlType = AttributeControlType.ColorSquares, Name = "Test customer attribute 2"
                },
                new CustomerAttribute
                {
                    AttributeControlType = AttributeControlType.Datepicker, Name = "Test customer attribute 3"
                },
                new CustomerAttribute
                {
                    AttributeControlType = AttributeControlType.DropdownList, Name = "Test customer attribute 4"
                },
                new CustomerAttribute
                {
                    AttributeControlType = AttributeControlType.FileUpload, Name = "Test customer attribute 5"
                },
                new CustomerAttribute
                {
                    AttributeControlType = AttributeControlType.ImageSquares, Name = "Test customer attribute 6"
                },
                new CustomerAttribute
                {
                    AttributeControlType = AttributeControlType.MultilineTextbox, Name = "Test customer attribute 7"
                },
                new CustomerAttribute
                {
                    AttributeControlType = AttributeControlType.RadioList, Name = "Test customer attribute 8"
                },
                new CustomerAttribute
                {
                    AttributeControlType = AttributeControlType.ReadonlyCheckboxes, Name = "Test customer attribute 9"
                },
                new CustomerAttribute
                {
                    AttributeControlType = AttributeControlType.TextBox, Name = "Test customer attribute 10"
                }
            };

            foreach (var customerAttribute in _customerAttributes)
            {
                await _customerAttributeService.InsertCustomerAttributeAsync(customerAttribute);
            }
        }
Пример #6
0
 public CareRequestController(ICustomerModelFactory customerModelFactory,
                              ICustomerService customerService,
                              IUserService userService,
                              IWorkerPersonAssignmentService assignmentService)
 {
     _customerService      = customerService;
     _customerModelFactory = customerModelFactory;
     _userService          = userService;
     _assignmentService    = assignmentService;
 }
Пример #7
0
 public PushNotificationController(
     ICustomerModelFactory customerModelFactory,
     ICustomerService customerService,
     IPermissionService permissionService,
     IWorkContext workContext)
 {
     _customerModelFactory = customerModelFactory;
     _customerService      = customerService;
     _permissionService    = permissionService;
     _workContext          = workContext;
 }
Пример #8
0
 public CustomerController(ICustomerModelFactory customerModelFactory,
                           ICustomerService customerService, IUserService userService,
                           IAddressService addressService,
                           IWorkerPersonAssignmentService assignmentService)
 {
     _customerService      = customerService;
     _addressService       = addressService;
     _customerModelFactory = customerModelFactory;
     _userService          = userService;
     _assignmentService    = assignmentService;
 }
Пример #9
0
 public CompanyController(IAclService aclService,
                          ICompanyModelFactory companyModelFactory,
                          ICompanyService companyService,
                          ICustomerActivityService customerActivityService,
                          ICustomerService customerService,
                          IDiscountService discountService,
                          IExportManager exportManager,
                          IImportManager importManager,
                          ILocalizationService localizationService,
                          ILocalizedEntityService localizedEntityService,
                          INotificationService notificationService,
                          IPermissionService permissionService,
                          IPictureService pictureService,
                          IProductService productService,
                          IStaticCacheManager staticCacheManager,
                          IStoreMappingService storeMappingService,
                          IStoreService storeService,
                          IUrlRecordService urlRecordService,
                          IWorkContext workContext,
                          ICustomerModelFactory customerModelFactory,
                          IAddressAttributeParser addressAttributeParser,
                          IAddressService addressService)
 {
     _aclService              = aclService;
     _companyModelFactory     = companyModelFactory;
     _companyService          = companyService;
     _customerActivityService = customerActivityService;
     _customerService         = customerService;
     _discountService         = discountService;
     _exportManager           = exportManager;
     _importManager           = importManager;
     _localizationService     = localizationService;
     _localizedEntityService  = localizedEntityService;
     _notificationService     = notificationService;
     _permissionService       = permissionService;
     _pictureService          = pictureService;
     _productService          = productService;
     _staticCacheManager      = staticCacheManager;
     _storeMappingService     = storeMappingService;
     _storeService            = storeService;
     _urlRecordService        = urlRecordService;
     _workContext             = workContext;
     _customerModelFactory    = customerModelFactory;
     _addressAttributeParser  = addressAttributeParser;
     _addressService          = addressService;
 }
 public CustomerNavigationViewComponent(ICustomerModelFactory customerModelFactory)
 {
     _customerModelFactory = customerModelFactory;
 }
 public OnlineCustomerController(ICustomerModelFactory customerModelFactory,
                                 IPermissionService permissionService)
 {
     _customerModelFactory = customerModelFactory;
     _permissionService    = permissionService;
 }
        public GBSLoginController(IAddressModelFactory addressModelFactory,
                                  ICustomerModelFactory customerModelFactory,
                                  IAuthenticationService authenticationService,
                                  DateTimeSettings dateTimeSettings,
                                  TaxSettings taxSettings,
                                  ILocalizationService localizationService,
                                  IWorkContext workContext,
                                  IStoreContext storeContext,
                                  ICustomerService customerService,
                                  ICustomerAttributeParser customerAttributeParser,
                                  ICustomerAttributeService customerAttributeService,
                                  IGenericAttributeService genericAttributeService,
                                  ICustomerRegistrationService customerRegistrationService,
                                  ITaxService taxService,
                                  CustomerSettings customerSettings,
                                  AddressSettings addressSettings,
                                  ForumSettings forumSettings,
                                  IAddressService addressService,
                                  ICountryService countryService,
                                  IOrderService orderService,
                                  IPictureService pictureService,
                                  INewsLetterSubscriptionService newsLetterSubscriptionService,
                                  IShoppingCartService shoppingCartService,
                                  IWebHelper webHelper,
                                  ICustomerActivityService customerActivityService,
                                  IAddressAttributeParser addressAttributeParser,
                                  IAddressAttributeService addressAttributeService,
                                  IStoreService storeService,
                                  IEventPublisher eventPublisher,
                                  MediaSettings mediaSettings,
                                  IWorkflowMessageService workflowMessageService,
                                  LocalizationSettings localizationSettings,
                                  CaptchaSettings captchaSettings,
                                  StoreInformationSettings storeInformationSettings,
                                  ILogger logger,
                                  CaptchaSettings _captchaSettings,
                                  IExternalAuthenticationService externalAuthenticationService)
        {
            this._addressModelFactory         = addressModelFactory;
            this._customerModelFactory        = customerModelFactory;
            this._authenticationService       = authenticationService;
            this._dateTimeSettings            = dateTimeSettings;
            this._taxSettings                 = taxSettings;
            this._localizationService         = localizationService;
            this._workContext                 = workContext;
            this._storeContext                = storeContext;
            this._customerService             = customerService;
            this._customerAttributeParser     = customerAttributeParser;
            this._customerAttributeService    = customerAttributeService;
            this._genericAttributeService     = genericAttributeService;
            this._customerRegistrationService = customerRegistrationService;
            this._taxService       = taxService;
            this._customerSettings = customerSettings;
            this._addressSettings  = addressSettings;
            this._forumSettings    = forumSettings;
            this._addressService   = addressService;
            this._countryService   = countryService;
            this._orderService     = orderService;
            this._pictureService   = pictureService;
            this._newsLetterSubscriptionService = newsLetterSubscriptionService;
            this._shoppingCartService           = shoppingCartService;
            this._webHelper = webHelper;
            this._customerActivityService  = customerActivityService;
            this._addressAttributeParser   = addressAttributeParser;
            this._addressAttributeService  = addressAttributeService;
            this._storeService             = storeService;
            this._eventPublisher           = eventPublisher;
            this._mediaSettings            = mediaSettings;
            this._workflowMessageService   = workflowMessageService;
            this._localizationSettings     = localizationSettings;
            this._captchaSettings          = captchaSettings;
            this._storeInformationSettings = storeInformationSettings;
            this._logger = logger;
            this._externalAuthenticationService = externalAuthenticationService;

            this._baseNopCustomerController = new Nop.Web.Controllers.CustomerController(
                this._addressModelFactory,
                this._customerModelFactory,
                this._authenticationService,
                this._dateTimeSettings,
                this._taxSettings,
                this._localizationService,
                this._workContext,
                this._storeContext,
                this._customerService,
                this._customerAttributeParser,
                this._customerAttributeService,
                this._genericAttributeService,
                this._customerRegistrationService,
                this._taxService,
                this._customerSettings,
                this._addressSettings,
                this._forumSettings,
                this._addressService,
                this._countryService,
                this._orderService,
                this._pictureService,
                this._newsLetterSubscriptionService,
                this._shoppingCartService,
                this._externalAuthenticationService,
                this._webHelper,
                this._customerActivityService,
                this._addressAttributeParser,
                this._addressAttributeService,
                this._eventPublisher,
                this._mediaSettings,
                this._workflowMessageService,
                this._localizationSettings,
                this._captchaSettings,
                this._storeInformationSettings);
        }
Пример #13
0
 public HomeController(ICustomerModelFactory customerModelFactory, ICacheManager cacheManager)
 {
     _customerModelFactory = customerModelFactory;
     _cacheManager         = cacheManager;
 }
Пример #14
0
        public PaidRegistionController(
            IAddressModelFactory addressModelFactory,
            ICustomerModelFactory customerModelFactory,
            IAuthenticationService authenticationService,
            DateTimeSettings dateTimeSettings,
            TaxSettings taxSettings,
            ILocalizationService localizationService,
            IWorkContext workContext,
            IStoreContext storeContext,
            ICustomerService customerService,
            ICustomerAttributeParser customerAttributeParser,
            ICustomerAttributeService customerAttributeService,
            IGenericAttributeService genericAttributeService,
            ICustomerRegistrationService customerRegistrationService,
            ITaxService taxService,
            CustomerSettings customerSettings,
            AddressSettings addressSettings,
            ForumSettings forumSettings,
            IAddressService addressService,
            ICountryService countryService,
            IOrderService orderService,
            IPictureService pictureService,
            INewsLetterSubscriptionService newsLetterSubscriptionService,
            IShoppingCartService shoppingCartService,
            IOpenAuthenticationService openAuthenticationService,
            IWebHelper webHelper,
            ICustomerActivityService customerActivityService,
            IAddressAttributeParser addressAttributeParser,
            IAddressAttributeService addressAttributeService,
            IStoreService storeService,
            IEventPublisher eventPublisher,
            MediaSettings mediaSettings,
            IWorkflowMessageService workflowMessageService,
            LocalizationSettings localizationSettings,
            CaptchaSettings captchaSettings,
            StoreInformationSettings storeInformationSettings,
            IStateProvinceService stateProvinceService

            )
        {
            this._addressModelFactory         = addressModelFactory;
            this._customerModelFactory        = customerModelFactory;
            this._authenticationService       = authenticationService;
            this._dateTimeSettings            = dateTimeSettings;
            this._taxSettings                 = taxSettings;
            this._localizationService         = localizationService;
            this._workContext                 = workContext;
            this._storeContext                = storeContext;
            this._customerService             = customerService;
            this._customerAttributeParser     = customerAttributeParser;
            this._customerAttributeService    = customerAttributeService;
            this._genericAttributeService     = genericAttributeService;
            this._customerRegistrationService = customerRegistrationService;
            this._taxService       = taxService;
            this._customerSettings = customerSettings;
            this._addressSettings  = addressSettings;
            this._forumSettings    = forumSettings;
            this._addressService   = addressService;
            this._countryService   = countryService;
            this._orderService     = orderService;
            this._pictureService   = pictureService;
            this._newsLetterSubscriptionService = newsLetterSubscriptionService;
            this._shoppingCartService           = shoppingCartService;
            this._openAuthenticationService     = openAuthenticationService;
            this._webHelper = webHelper;
            this._customerActivityService  = customerActivityService;
            this._addressAttributeParser   = addressAttributeParser;
            this._addressAttributeService  = addressAttributeService;
            this._storeService             = storeService;
            this._eventPublisher           = eventPublisher;
            this._mediaSettings            = mediaSettings;
            this._workflowMessageService   = workflowMessageService;
            this._localizationSettings     = localizationSettings;
            this._captchaSettings          = captchaSettings;
            this._storeInformationSettings = storeInformationSettings;
            this._stateProvinceService     = stateProvinceService;



            this._mapper = new MapperConfiguration(cfg => { cfg.CreateMap <RegisterModel, PaaRegisterModel>(); })
                           .CreateMapper();
        }