本文整理汇总了C#中Nop.Core.Domain.Localization.LocalizationSettings类的典型用法代码示例。如果您正苦于以下问题:C# LocalizationSettings类的具体用法?C# LocalizationSettings怎么用?C# LocalizationSettings使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
LocalizationSettings类属于Nop.Core.Domain.Localization命名空间,在下文中一共展示了LocalizationSettings类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SetUp
public new void SetUp()
{
_languageRepo = MockRepository.GenerateMock<IRepository<Language>>();
var lang1 = new Language
{
Name = "English",
LanguageCulture = "en-Us",
FlagImageFileName = "us.png",
Published = true,
DisplayOrder = 1
};
var lang2 = new Language
{
Name = "Russian",
LanguageCulture = "ru-Ru",
FlagImageFileName = "ru.png",
Published = true,
DisplayOrder = 2
};
_languageRepo.Expect(x => x.Table).Return(new List<Language>() { lang1, lang2 }.AsQueryable());
_storeMappingRepo = MockRepository.GenerateMock<IRepository<StoreMapping>>();
var cacheManager = new NopNullCache();
_settingService = MockRepository.GenerateMock<ISettingService>();
_eventPublisher = MockRepository.GenerateMock<IEventPublisher>();
_eventPublisher.Expect(x => x.Publish(Arg<object>.Is.Anything));
_localizationSettings = new LocalizationSettings();
_languageService = new LanguageService(cacheManager, _languageRepo, _storeMappingRepo,
_settingService, _localizationSettings, _eventPublisher);
}
示例2: WebWorkContext
public WebWorkContext(HttpContextBase httpContext,
ICustomerService customerService,
IVendorService vendorService,
IStoreContext storeContext,
IAuthenticationService authenticationService,
ILanguageService languageService,
ICurrencyService currencyService,
IGenericAttributeService genericAttributeService,
TaxSettings taxSettings,
CurrencySettings currencySettings,
LocalizationSettings localizationSettings,
IUserAgentHelper userAgentHelper,
IStoreMappingService storeMappingService)
{
this._httpContext = httpContext;
this._customerService = customerService;
this._vendorService = vendorService;
this._storeContext = storeContext;
this._authenticationService = authenticationService;
this._languageService = languageService;
this._currencyService = currencyService;
this._genericAttributeService = genericAttributeService;
this._taxSettings = taxSettings;
this._currencySettings = currencySettings;
this._localizationSettings = localizationSettings;
this._userAgentHelper = userAgentHelper;
this._storeMappingService = storeMappingService;
}
示例3: 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;
}
示例4: OrderController
public OrderController(IOrderService orderService, IWorkContext workContext,
ICurrencyService currencyService, IPriceFormatter priceFormatter,
IOrderProcessingService orderProcessingService,
IDateTimeHelper dateTimeHelper, IMeasureService measureService,
IPaymentService paymentService, ILocalizationService localizationService,
IPdfService pdfService, ICustomerService customerService,
IWorkflowMessageService workflowMessageService,
LocalizationSettings localizationSettings,
MeasureSettings measureSettings, CatalogSettings catalogSettings,
OrderSettings orderSettings, TaxSettings taxSettings, PdfSettings pdfSettings)
{
this._orderService = orderService;
this._workContext = workContext;
this._currencyService = currencyService;
this._priceFormatter = priceFormatter;
this._orderProcessingService = orderProcessingService;
this._dateTimeHelper = dateTimeHelper;
this._measureService = measureService;
this._paymentService = paymentService;
this._localizationService = localizationService;
this._pdfService = pdfService;
this._customerService = customerService;
this._workflowMessageService = workflowMessageService;
this._localizationSettings = localizationSettings;
this._measureSettings = measureSettings;
this._catalogSettings = catalogSettings;
this._orderSettings = orderSettings;
this._taxSettings = taxSettings;
this._pdfSettings = pdfSettings;
}
示例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: VendorController
public VendorController(IWorkContext workContext,
ILocalizationService localizationService,
ICustomerService customerService,
IWorkflowMessageService workflowMessageService,
IVendorService vendorService,
IUrlRecordService urlRecordService,
IPictureService pictureService,
LocalizationSettings localizationSettings,
VendorSettings vendorSettings,
CaptchaSettings captchaSettings,
MediaSettings mediaSettings)
{
this._workContext = workContext;
this._localizationService = localizationService;
this._customerService = customerService;
this._workflowMessageService = workflowMessageService;
this._vendorService = vendorService;
this._urlRecordService = urlRecordService;
this._pictureService = pictureService;
this._localizationSettings = localizationSettings;
this._vendorSettings = vendorSettings;
this._captchaSettings = captchaSettings;
this._mediaSettings = mediaSettings;
}
示例7: ReturnRequestController
public ReturnRequestController(IOrderService orderService,
IWorkContext workContext,
IStoreContext storeContext,
ICurrencyService currencyService,
IPriceFormatter priceFormatter,
IOrderProcessingService orderProcessingService,
ILocalizationService localizationService,
ICustomerService customerService,
IWorkflowMessageService workflowMessageService,
IDateTimeHelper dateTimeHelper,
LocalizationSettings localizationSettings,
OrderSettings orderSettings)
{
this._orderService = orderService;
this._workContext = workContext;
this._storeContext = storeContext;
this._currencyService = currencyService;
this._priceFormatter = priceFormatter;
this._orderProcessingService = orderProcessingService;
this._localizationService = localizationService;
this._customerService = customerService;
this._workflowMessageService = workflowMessageService;
this._dateTimeHelper = dateTimeHelper;
this._localizationSettings = localizationSettings;
this._orderSettings = orderSettings;
}
示例8: 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;
}
示例9: RobotsTxtManager
public RobotsTxtManager(
ISettingService settingService,
ILocalizationService localizationService,
LocalizationSettings localizationSettings,
IStoreContext storeContext,
ILanguageService languageService,
IBlogService blogService,
INewsService newsService,
ICategoryService categoryService,
IManufacturerService manufacturerService,
ITopicService topicService,
IVendorService vendorService,
IProductService productService)
{
_settingService = settingService;
_localizationService = localizationService;
_localizationSettings = localizationSettings;
_storeContext = storeContext;
_languageService = languageService;
_blogService = blogService;
_newsService = newsService;
_categoryService = categoryService;
_manufacturerService = manufacturerService;
_topicService = topicService;
_vendorService = vendorService;
_productService = productService;
_storeId = _storeContext.CurrentStore.Id;
_languages = _languageService.GetAllLanguages(storeId: _storeId);
}
示例10: LocalizationService
/// <summary>
/// Ctor
/// </summary>
/// <param name="cacheManager">Cache manager</param>
/// <param name="logger">Logger</param>
/// <param name="workContext">Work context</param>
/// <param name="lsrRepository">Locale string resource repository</param>
/// <param name="localizationSettings">Localization settings</param>
/// <param name="eventPublisher"></param>
public LocalizationService(ICacheManager cacheManager,
ILogger logger, IWorkContext workContext,
IRepository<LocaleStringResource> lsrRepository, LocalizationSettings localizationSettings, IEventPublisher eventPublisher)
{
_cacheManager = cacheManager;
_logger = logger;
_workContext = workContext;
_lsrRepository = lsrRepository;
_localizationSettings = localizationSettings;
_eventPublisher = eventPublisher;
}
示例11: MtProductService
public MtProductService(ICacheManager cacheManager,
IRepository<Product> productRepository,
IRepository<RelatedProduct> relatedProductRepository,
IRepository<CrossSellProduct> crossSellProductRepository,
IRepository<TierPrice> tierPriceRepository,
IRepository<ProductPicture> productPictureRepository,
IRepository<LocalizedProperty> localizedPropertyRepository,
IRepository<AclRecord> aclRepository,
IRepository<StoreMapping> storeMappingRepository,
IRepository<ProductSpecificationAttribute> productSpecificationAttributeRepository,
IRepository<ProductReview> productReviewRepository,
IRepository<ProductWarehouseInventory> productWarehouseInventoryRepository,
IProductAttributeService productAttributeService,
IProductAttributeParser productAttributeParser,
ILanguageService languageService,
IWorkflowMessageService workflowMessageService,
IDataProvider dataProvider,
IDbContext dbContext,
IWorkContext workContext,
IStoreContext storeContext,
LocalizationSettings localizationSettings,
CommonSettings commonSettings,
CatalogSettings catalogSettings,
IEventPublisher eventPublisher,
IAclService aclService,
IStoreMappingService storeMappingService)
{
this._cacheManager = cacheManager;
this._productRepository = productRepository;
this._relatedProductRepository = relatedProductRepository;
this._crossSellProductRepository = crossSellProductRepository;
this._tierPriceRepository = tierPriceRepository;
this._productPictureRepository = productPictureRepository;
this._localizedPropertyRepository = localizedPropertyRepository;
this._aclRepository = aclRepository;
this._storeMappingRepository = storeMappingRepository;
this._productSpecificationAttributeRepository = productSpecificationAttributeRepository;
this._productReviewRepository = productReviewRepository;
this._productWarehouseInventoryRepository = productWarehouseInventoryRepository;
this._productAttributeService = productAttributeService;
this._productAttributeParser = productAttributeParser;
this._languageService = languageService;
this._workflowMessageService = workflowMessageService;
this._dataProvider = dataProvider;
this._dbContext = dbContext;
this._workContext = workContext;
this._storeContext = storeContext;
this._localizationSettings = localizationSettings;
this._commonSettings = commonSettings;
this._catalogSettings = catalogSettings;
this._eventPublisher = eventPublisher;
this._aclService = aclService;
this._storeMappingService = storeMappingService;
}
示例12: ReturnRequestController
public ReturnRequestController(IReturnRequestService returnRequestService,
IOrderService orderService,
ICustomerService customerService, IDateTimeHelper dateTimeHelper,
ILocalizationService localizationService, IWorkContext workContext,
IWorkflowMessageService workflowMessageService, LocalizationSettings localizationSettings,
ICustomerActivityService customerActivityService, IPermissionService permissionService)
: base(returnRequestService, orderService, customerService,
dateTimeHelper, localizationService,
workContext, workflowMessageService,
localizationSettings, customerActivityService, permissionService)
{ }
示例13: LanguageService
/// <summary>
/// Ctor
/// </summary>
/// <param name="cacheManager">Cache manager</param>
/// <param name="languageRepository">Language repository</param>
/// <param name="settingService">Setting service</param>
/// <param name="localizationSettings">Localization settings</param>
/// <param name="eventPublisher"></param>
public LanguageService(ICacheManager cacheManager,
IRepository<Language> languageRepository,
ISettingService settingService,
LocalizationSettings localizationSettings,
IEventPublisher eventPublisher)
{
_cacheManager = cacheManager;
_languageRepository = languageRepository;
_settingService = settingService;
_localizationSettings = localizationSettings;
_eventPublisher = eventPublisher;
}
示例14: LanguageService
/// <summary>
/// Ctor
/// </summary>
/// <param name="cacheManager">Cache manager</param>
/// <param name="languageRepository">Language repository</param>
/// <param name="customerService">Customer service</param>
/// <param name="settingService">Setting service</param>
/// <param name="localizationSettings">Localization settings</param>
/// <param name="eventPublisher">Event published</param>
public LanguageService(ICacheManager cacheManager,
IRepository<Language> languageRepository,
ICustomerService customerService,
ISettingService settingService,
LocalizationSettings localizationSettings,
IEventPublisher eventPublisher)
{
this._cacheManager = cacheManager;
this._languageRepository = languageRepository;
this._customerService = customerService;
this._settingService = settingService;
this._localizationSettings = localizationSettings;
this._eventPublisher = eventPublisher;
}
示例15: ReturnRequestController
public ReturnRequestController(IOrderService orderService,
ICustomerService customerService, IDateTimeHelper dateTimeHelper,
ILocalizationService localizationService, IWorkContext workContext,
IWorkflowMessageService workflowMessageService, LocalizationSettings localizationSettings,
ICustomerActivityService customerActivityService, IPermissionService permissionService)
{
this._orderService = orderService;
this._customerService = customerService;
this._dateTimeHelper = dateTimeHelper;
this._localizationService = localizationService;
this._workContext = workContext;
this._workflowMessageService = workflowMessageService;
this._localizationSettings = localizationSettings;
this._customerActivityService = customerActivityService;
this._permissionService = permissionService;
}