当前位置: 首页>>代码示例>>C#>>正文


C# Customers.CustomerSettings类代码示例

本文整理汇总了C#中Nop.Core.Domain.Customers.CustomerSettings的典型用法代码示例。如果您正苦于以下问题:C# CustomerSettings类的具体用法?C# CustomerSettings怎么用?C# CustomerSettings使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


CustomerSettings类属于Nop.Core.Domain.Customers命名空间,在下文中一共展示了CustomerSettings类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: mobSocialApiController

 public mobSocialApiController(IPermissionService permissionService,
     IWorkContext workContext, AdminAreaSettings adminAreaSettings, ILocalizationService localizationService,
     IPictureService pictureService, IMobSocialService socialNetworkService, ICustomerService customerService,
     ICustomerAlbumPictureService customerAlbumPictureService, mobSocialSettings mobSocialSettings, MediaSettings mediaSettings, CustomerSettings customerSettings, 
     ForumSettings forumSettings, RewardPointsSettings rewardPointsSettings, OrderSettings orderSettings,
      IStoreContext storeContext, IWebHelper webHelper, IUrlRecordService urlRecordService, IRepository<UrlRecord> urlRecordRepository,
     ICustomerVideoAlbumService customerVideoAlbumService, CustomerProfileViewService customerProfileViewService)
 {
     _permissionService = permissionService;
     _workContext = workContext;
     _adminAreaSettings = adminAreaSettings;
     _localizationService = localizationService;
     _pictureService = pictureService;
     _socialNetworkService = socialNetworkService;
     _customerService = customerService;
     _customerAlbumPictureService = customerAlbumPictureService;
     _mobSocialSettings = mobSocialSettings;
     _mediaSettings = mediaSettings;
     _customerSettings = customerSettings;
     _forumSettings = forumSettings;
     _rewardPointsSettings = rewardPointsSettings;
     _orderSettings = orderSettings;
     _storeContext = storeContext;
     _webHelper = webHelper;
     _urlRecordService = urlRecordService;
     _urlRecordRepository = urlRecordRepository;
     _customerVideoAlbumService = customerVideoAlbumService;
     _customerProfileViewService = customerProfileViewService;
 }
开发者ID:Console-Byte,项目名称:mobsocial,代码行数:29,代码来源:mobSocialApiController.cs

示例2: ExternalAuthorizer

 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;
 }
开发者ID:491134648,项目名称:nopCommerce,代码行数:30,代码来源:ExternalAuthorizer.cs

示例3: SetUp

        public new void SetUp()
        {
            _taxSettings = new TaxSettings();
            _taxSettings.DefaultTaxAddressId = 10;

            _workContext = null;

            _addressService = MockRepository.GenerateMock<IAddressService>();
            //default tax address
            _addressService.Expect(x => x.GetAddressById(_taxSettings.DefaultTaxAddressId)).Return(new Address { Id = _taxSettings.DefaultTaxAddressId });

            var pluginFinder = new PluginFinder();

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

            _geoLookupService = MockRepository.GenerateMock<IGeoLookupService>();
            _countryService = MockRepository.GenerateMock<ICountryService>();
            _logger = MockRepository.GenerateMock<ILogger>();
            _customerSettings = new CustomerSettings();
            _addressSettings = new AddressSettings();

            _taxService = new TaxService(_addressService, _workContext, _taxSettings,
                pluginFinder, _geoLookupService, _countryService, _logger
                , _customerSettings, _addressSettings);
        }
开发者ID:nvolpe,项目名称:raver,代码行数:26,代码来源:TaxServiceTests.cs

示例4: BlogController

        public BlogController(IBlogService blogService, 
            IWorkContext workContext, IPictureService pictureService, ILocalizationService localizationService,
            ICustomerContentService customerContentService, IDateTimeHelper dateTimeHelper,
            IWorkflowMessageService workflowMessageService, IWebHelper webHelper,
            ICacheManager cacheManager, ICustomerActivityService customerActivityService,
            MediaSettings mediaSettings, BlogSettings blogSettings,
            LocalizationSettings localizationSettings, CustomerSettings customerSettings,
            StoreInformationSettings storeInformationSettings, CaptchaSettings captchaSettings)
        {
            this._blogService = blogService;
            this._workContext = workContext;
            this._pictureService = pictureService;
            this._localizationService = localizationService;
            this._customerContentService = customerContentService;
            this._dateTimeHelper = dateTimeHelper;
            this._workflowMessageService = workflowMessageService;
            this._webHelper = webHelper;
            this._cacheManager = cacheManager;
            this._customerActivityService = customerActivityService;

            this._mediaSettings = mediaSettings;
            this._blogSettings = blogSettings;
            this._localizationSettings = localizationSettings;
            this._customerSettings = customerSettings;
            this._storeInformationSettings = storeInformationSettings;
            this._captchaSettings = captchaSettings;
        }
开发者ID:priceLiu,项目名称:MulitNop,代码行数:27,代码来源:BlogController.cs

示例5: NewsController

        public NewsController(INewsService newsService, 
            IWorkContext workContext, IStoreContext storeContext, 
            IPictureService pictureService, ILocalizationService localizationService,
            IDateTimeHelper dateTimeHelper,
            IWorkflowMessageService workflowMessageService, IWebHelper webHelper,
            ICacheManager cacheManager, ICustomerActivityService customerActivityService,
            IStoreMappingService storeMappingService,
            MediaSettings mediaSettings, NewsSettings newsSettings,
            LocalizationSettings localizationSettings, CustomerSettings customerSettings,
            CaptchaSettings captchaSettings)
        {
            this._newsService = newsService;
            this._workContext = workContext;
            this._storeContext = storeContext;
            this._pictureService = pictureService;
            this._localizationService = localizationService;
            this._dateTimeHelper = dateTimeHelper;
            this._workflowMessageService = workflowMessageService;
            this._webHelper = webHelper;
            this._cacheManager = cacheManager;
            this._customerActivityService = customerActivityService;
            this._storeMappingService = storeMappingService;

            this._mediaSettings = mediaSettings;
            this._newsSettings = newsSettings;
            this._localizationSettings = localizationSettings;
            this._customerSettings = customerSettings;
            this._captchaSettings = captchaSettings;
        }
开发者ID:aleks279,项目名称:atrend-test,代码行数:29,代码来源:NewsController.cs

示例6: FormsAuthenticationService

 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="httpContext">HTTP context</param>
 /// <param name="customerService">Customer service</param>
 /// <param name="customerSettings">Customer settings</param>
 public FormsAuthenticationService(HttpContextBase httpContext,
     ICustomerService customerService, CustomerSettings customerSettings)
 {
     this._httpContext = httpContext;
     this._customerService = customerService;
     this._customerSettings = customerSettings;
     this._expirationTimeSpan = FormsAuthentication.Timeout;
 }
开发者ID:kouweizhong,项目名称:NopCommerce,代码行数:14,代码来源:FormsAuthenticationService.cs

示例7: Should_not_have_error_when_lastName_is_specified

        public void Should_not_have_error_when_lastName_is_specified()
        {
            var customerSettings = new CustomerSettings();
            var validator = new CustomerInfoValidator(_localizationService, customerSettings);

            var model = new CustomerInfoModel();
            model.LastName = "Smith";
            validator.ShouldNotHaveValidationErrorFor(x => x.LastName, model);
        }
开发者ID:philipengland,项目名称:albionextrusions.co.uk,代码行数:9,代码来源:CustomerInfoValidatorTests.cs

示例8: DownloadController

 public DownloadController(IDownloadService downloadService, IProductService productService,
     IOrderService orderService, IWorkContext workContext, CustomerSettings customerSettings)
 {
     this._downloadService = downloadService;
     this._productService = productService;
     this._orderService = orderService;
     this._workContext = workContext;
     this._customerSettings = customerSettings;
 }
开发者ID:nguyentu1982,项目名称:quancu,代码行数:9,代码来源:DownloadController.cs

示例9: Should_not_have_error_when_email_is_correct_format

        public void Should_not_have_error_when_email_is_correct_format()
        {
            var customerSettings = new CustomerSettings();
            var validator = new CustomerInfoValidator(_localizationService, customerSettings);

            var model = new CustomerInfoModel();
            model.Email = "[email protected]";
            validator.ShouldNotHaveValidationErrorFor(x => x.Email, model);
        }
开发者ID:philipengland,项目名称:albionextrusions.co.uk,代码行数:9,代码来源:CustomerInfoValidatorTests.cs

示例10: Should_not_have_error_when_email_is_null_but_usernames_are_enabled

        public void Should_not_have_error_when_email_is_null_but_usernames_are_enabled()
        {
            _customerSettings = new CustomerSettings();
            _customerSettings.UsernamesEnabled = true;
            _validator = new LoginValidator(_localizationService, _customerSettings);

            var model = new LoginModel();
            model.Email = null;
            _validator.ShouldNotHaveValidationErrorFor(x => x.Email, model);
        }
开发者ID:shuangyu1937,项目名称:nopCommerce,代码行数:10,代码来源:LoginValidatorTests.cs

示例11: NewsletterController

        public NewsletterController(ILocalizationService localizationService,
            IWorkContext workContext, INewsLetterSubscriptionService newsLetterSubscriptionService,
            IWorkflowMessageService workflowMessageService, CustomerSettings customerSettings)
        {
            this._localizationService = localizationService;
            this._workContext = workContext;
            this._newsLetterSubscriptionService = newsLetterSubscriptionService;
            this._workflowMessageService = workflowMessageService;

            this._customerSettings = customerSettings;
        }
开发者ID:nopmcs,项目名称:mycreativestudio,代码行数:11,代码来源:NewsletterController.cs

示例12: Should_have_error_when_lastName_is_null_or_empty

        public void Should_have_error_when_lastName_is_null_or_empty()
        {
            var customerSettings = new CustomerSettings();
            var validator = new CustomerInfoValidator(_localizationService, customerSettings);

            var model = new CustomerInfoModel();
            model.LastName = null;
            validator.ShouldHaveValidationErrorFor(x => x.LastName, model);
            model.LastName = "";
            validator.ShouldHaveValidationErrorFor(x => x.LastName, model);
        }
开发者ID:philipengland,项目名称:albionextrusions.co.uk,代码行数:11,代码来源:CustomerInfoValidatorTests.cs

示例13: PrivateMessagesController

 public PrivateMessagesController(IForumService forumService,
     ICustomerService customerService,
     IWorkContext workContext,
     ForumSettings forumSettings, CustomerSettings customerSettings)
 {
     this._forumService = forumService;
     this._customerService = customerService;
     this._workContext = workContext;
     this._forumSettings = forumSettings;
     this._customerSettings = customerSettings;
 }
开发者ID:CCSW,项目名称:desnivell,代码行数:11,代码来源:PrivateMessagesController.cs

示例14: OnlineCustomerController

 public OnlineCustomerController(ICustomerService customerService,
     IGeoLookupService geoLookupService, IDateTimeHelper dateTimeHelper,
     CustomerSettings customerSettings,
     IPermissionService permissionService, ILocalizationService localizationService)
 {
     this._customerService = customerService;
     this._geoLookupService = geoLookupService;
     this._dateTimeHelper = dateTimeHelper;
     this._customerSettings = customerSettings;
     this._permissionService = permissionService;
     this._localizationService = localizationService;
 }
开发者ID:491134648,项目名称:nopCommerce,代码行数:12,代码来源:OnlineCustomerController.cs

示例15: OnlineCustomerController

 public OnlineCustomerController(ICustomerService customerService,
     IGeoCountryLookup geoCountryLookup, IDateTimeHelper dateTimeHelper,
     CustomerSettings customerSettings, AdminAreaSettings adminAreaSettings,
     IPermissionService permissionService)
 {
     this._customerService = customerService;
     this._geoCountryLookup = geoCountryLookup;
     this._dateTimeHelper = dateTimeHelper;
     this._customerSettings = customerSettings;
     this._adminAreaSettings = adminAreaSettings;
     this._permissionService = permissionService;
 }
开发者ID:cmcginn,项目名称:StoreFront,代码行数:12,代码来源:OnlineCustomerController.cs


注:本文中的Nop.Core.Domain.Customers.CustomerSettings类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。