本文整理汇总了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;
}
示例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;
}
示例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);
}
示例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;
}
示例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;
}
示例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;
}
示例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);
}
示例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;
}
示例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);
}
示例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);
}
示例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;
}
示例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);
}
示例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;
}
示例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;
}
示例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;
}