當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。