/// <summary> /// Initializes a new instance of the <see cref="GlobalSettingsSearchProvider" /> class. /// </summary> /// <param name="localizationService">The localization service.</param> /// <param name="siteDefinitionResolver">The site definition resolver.</param> /// <param name="contentTypeRepository">The content type repository.</param> /// <param name="editUrlResolver">The edit URL resolver.</param> /// <param name="currentSiteDefinition">The current site definition.</param> /// <param name="languageResolver">The language resolver.</param> /// <param name="urlResolver">The URL resolver.</param> /// <param name="templateResolver">The template resolver.</param> /// <param name="uiDescriptorRegistry">The UI descriptor registry.</param> /// <param name="contentLoader">The content loader.</param> /// <param name="settingsService">The settings service.</param> public GlobalSettingsSearchProvider( LocalizationService localizationService, ISiteDefinitionResolver siteDefinitionResolver, IContentTypeRepository <ContentType> contentTypeRepository, EditUrlResolver editUrlResolver, ServiceAccessor <SiteDefinition> currentSiteDefinition, LanguageResolver languageResolver, UrlResolver urlResolver, TemplateResolver templateResolver, UIDescriptorRegistry uiDescriptorRegistry, IContentLoader contentLoader, ISettingsService settingsService) : base( localizationService: localizationService, siteDefinitionResolver: siteDefinitionResolver, contentTypeRepository: contentTypeRepository, editUrlResolver: editUrlResolver, currentSiteDefinition: currentSiteDefinition, languageResolver: languageResolver, urlResolver: urlResolver, templateResolver: templateResolver, uiDescriptorRegistry: uiDescriptorRegistry) { this.contentLoader = contentLoader; this.settingsService = settingsService; this.localizationService = localizationService; }
public LatestContentResolver(IContentStoreModelCreator contentStoreModelCreator, IContentVersionRepository contentVersionRepository, LanguageResolver languageResolver, IContentLoader contentLoader) { _contentStoreModelCreator = contentStoreModelCreator; _contentVersionRepository = contentVersionRepository; _languageResolver = languageResolver; _contentLoader = contentLoader; }
public CommerceTrackingService( ServiceAccessor <IContentRouteHelper> contentRouteHelperAccessor, IContextModeResolver contextModeResolver, IProductService productService, TrackingDataFactory trackingDataFactory, ITrackingService trackingService, IContentLoader contentLoader, LanguageService languageService, HttpContextBase httpContextBase, LanguageResolver languageResolver, ILineItemCalculator lineItemCalculator, IRequestTrackingDataService requestTrackingDataService, ReferenceConverter referenceConverter, IRelationRepository relationRepository, ICurrentMarket currentMarket) { _contentRouteHelperAccessor = contentRouteHelperAccessor; _contextModeResolver = contextModeResolver; _productService = productService; _trackingDataFactory = trackingDataFactory; _trackingService = trackingService; _contentLoader = contentLoader; _languageService = languageService; _httpContextBase = httpContextBase; _languageResolver = languageResolver; _lineItemCalculator = lineItemCalculator; _requestTrackingDataService = requestTrackingDataService; _referenceConverter = referenceConverter; _relationRepository = relationRepository; _currentMarket = currentMarket; }
public CommerceSearchService(ICurrentMarket currentMarket, ICurrencyService currencyService, LanguageResolver languageResolver, IClient findClient, IFacetRegistry facetRegistry, IFindUIConfiguration findUIConfiguration, ReferenceConverter referenceConverter, IContentRepository contentRepository, IPriceService priceService, IPromotionService promotionService, ICurrencyService currencyservice, IContentLoader contentLoader ) { _currentMarket = currentMarket; _currencyService = currencyService; _languageResolver = languageResolver; _findClient = findClient; _facetRegistry = facetRegistry; _findUIConfiguration = findUIConfiguration; //_findClient.Personalization().Refresh(); _referenceConverter = referenceConverter; _contentRepository = contentRepository; _priceService = priceService; _promotionService = promotionService; _currencyservice = currencyservice; _contentLoader = contentLoader; }
public ProductController( IPromotionService promotionService, IContentLoader contentLoader, IPriceService priceService, ICurrentMarket currentMarket, CurrencyService currencyservice, IRelationRepository relationRepository, AppContextFacade appContext, UrlResolver urlResolver, FilterPublished filterPublished, LanguageResolver languageResolver, IsInEditModeAccessor isInEditModeAccessor) { _promotionService = promotionService; _contentLoader = contentLoader; _priceService = priceService; _currentMarket = currentMarket; _currencyservice = currencyservice; _relationRepository = relationRepository; _appContext = appContext; _urlResolver = urlResolver; _languageResolver = languageResolver; _isInEditMode = isInEditModeAccessor(); _filterPublished = filterPublished; }
public TaskDefinitionRotationViewModel EditGenericTaskDefinitionForm(int id) { TaskDefinition definition = _taskDefinitionDAO.Get(id); TaskDefinitionRotationViewModel viewModel = new TaskDefinitionRotationViewModel { Id = definition.Id, SystemName = definition.SystemName, }; IList <Rotation> rotations = _rotationDAO.GetAllByTaskDefinitionIdOrderedByTaskTitle(definition.Id); foreach (Rotation rotation in rotations) { RotationTaskListItemViewModel translationViewModel = new RotationTaskListItemViewModel() { Id = rotation.Id, Title = rotation.Task.Title, OperatorTask = rotation.OperatorTask.Title, OperatorRole = rotation.OperatorTask.Role.Title, AssistantTask = rotation.AssistantTask.Title, AssistantRole = rotation.AssistantTask.Role.Title, Language = LanguageResolver.GetLanguageName(rotation.Task.CultureName) }; viewModel.RotationTasks.Add(translationViewModel); } return(viewModel); }
public WishListController( IContentLoader contentLoader, ICartService cartService, IOrderRepository orderRepository, ICommerceTrackingService recommendationService, CartViewModelFactory cartViewModelFactory, IQuickOrderService quickOrderService, ReferenceConverter referenceConverter, ICustomerService customerService, IUrlResolver urlResolver, IRelationRepository relationRepository, LanguageResolver languageResolver, ICurrentMarket currentMarket, FilterPublished filterPublished, ISettingsService settingsService) { _contentLoader = contentLoader; _cartService = cartService; _orderRepository = orderRepository; _trackingService = recommendationService; _cartViewModelFactory = cartViewModelFactory; _quickOrderService = quickOrderService; _referenceConverter = referenceConverter; _customerService = customerService; _urlResolver = urlResolver; _relationRepository = relationRepository; _languageResolver = languageResolver; _currentMarket = currentMarket; _filterPublished = filterPublished; _settingsService = settingsService; }
public CatalogEntryViewModelFactory( IPromotionService promotionService, IContentLoader contentLoader, IPriceService priceService, ICurrentMarket currentMarket, CurrencyService currencyservice, IRelationRepository relationRepository, UrlResolver urlResolver, FilterPublished filterPublished, LanguageResolver languageResolver, IStoreService storeService, IProductService productService, IQuickOrderService quickOrderService, IInventoryService inventoryService, IWarehouseRepository warehouseRepository, IDatabaseMode databaseMode) { _promotionService = promotionService; _contentLoader = contentLoader; _priceService = priceService; _currentMarket = currentMarket; _currencyservice = currencyservice; _relationRepository = relationRepository; _urlResolver = urlResolver; _filterPublished = filterPublished; _languageResolver = languageResolver; _storeService = storeService; _productService = productService; _quickOrderService = quickOrderService; _inventoryService = inventoryService; _warehouseRepository = warehouseRepository; _databaseMode = databaseMode; }
public TaskDefinitionGenericViewModel EditGenericTaskDefinitionForm(int id) { TaskDefinition definition = _taskDefinitionDAO.Get(id); TaskDefinitionGenericViewModel viewModel = new TaskDefinitionGenericViewModel { Id = definition.Id, SystemName = definition.SystemName }; foreach (Task task in definition.Tasks) { TaskListItemViewModel translationViewModel = new TaskListItemViewModel() { Id = task.Id, Title = task.Title, Role = task.Role.Title, NoiseProtection = task.NoiseProtection.Title, NoiseLevelGuideline = task.NoiseLevelGuideline, AllowedExposureMinutes = task.AllowedExposureMinutes, ButtonPressed = task.ButtonPressed, Language = LanguageResolver.GetLanguageName(task.CultureName) }; viewModel.Tasks.Add(translationViewModel); } return(viewModel); }
public DefaultCartController( ICartService cartService, IOrderRepository orderRepository, ICommerceTrackingService recommendationService, CartViewModelFactory cartViewModelFactory, IContentLoader contentLoader, IContentRouteHelper contentRouteHelper, ReferenceConverter referenceConverter, IQuickOrderService quickOrderService, ICustomerService customerService, ShipmentViewModelFactory shipmentViewModelFactory, CheckoutService checkoutService, IOrderGroupCalculator orderGroupCalculator, CartItemViewModelFactory cartItemViewModelFactory, IProductService productService, LanguageResolver languageResolver) { _cartService = cartService; _orderRepository = orderRepository; _recommendationService = recommendationService; _cartViewModelFactory = cartViewModelFactory; _contentLoader = contentLoader; _contentRouteHelper = contentRouteHelper; _referenceConverter = referenceConverter; _quickOrderService = quickOrderService; _customerService = customerService; _shipmentViewModelFactory = shipmentViewModelFactory; _checkoutService = checkoutService; _orderGroupCalculator = orderGroupCalculator; _cartItemViewModelFactory = cartItemViewModelFactory; _productService = productService; _languageResolver = languageResolver; }
public FilterOptionViewModelBinder(IContentLoader contentLoader, LocalizationService localizationService, LanguageResolver languageResolver) { _contentLoader = contentLoader; _localizationService = localizationService; _languageResolver = languageResolver; }
public ContentCompareStore(IContentVersionRepository contentVersionRepository, LanguageResolver languageResolver, ContentSoftLinkIndexer contentSoftLinkIndexer, IContentLoader contentLoader) { _contentVersionRepository = contentVersionRepository; _languageResolver = languageResolver; _contentSoftLinkIndexer = contentSoftLinkIndexer; _contentLoader = contentLoader; }
public LatestContentResolver(IContentStoreModelCreator contentStoreModelCreator, IContentVersionRepository contentVersionRepository, LanguageResolver languageResolver, IContentLoader contentLoader, ProjectContentResolver projectContentResolver, CurrentProject currentProject) { _contentStoreModelCreator = contentStoreModelCreator; _contentVersionRepository = contentVersionRepository; _languageResolver = languageResolver; _contentLoader = contentLoader; _projectContentResolver = projectContentResolver; _currentProject = currentProject; }
public DraftContentAreaLoader(IContentAreaLoader defaultContentAreaLoader, IContentLoader contentLoader, LanguageResolver languageResolver, IContentVersionRepository contentVersionRepository ) { _defaultContentAreaLoader = defaultContentAreaLoader; _contentLoader = contentLoader; _languageResolver = languageResolver; _contentVersionRepository = contentVersionRepository; }
public GenericTranslationViewModel(string selectedCultureName) { SelectedCultureName = selectedCultureName; SelectedLanguage = LanguageResolver.GetLanguageName(selectedCultureName); Languages = new List <SelectOptionViewModel>(); AddLanguageSelectOption("-- Select One --", string.Empty); AddLanguageSelectOption(LanguageResolver.GetLanguageName("nb-NO"), "nb-NO"); AddLanguageSelectOption(LanguageResolver.GetLanguageName("en-US"), "en-US"); }
public IList <SelectOptionViewModel> CreateSelectedLanguageList(string selectedCultureName) { IList <SelectOptionViewModel> languages = new List <SelectOptionViewModel>(); languages.Add(CreateLanguageSelectOption("-- Select One --", "0", selectedCultureName)); languages.Add(CreateLanguageSelectOption(LanguageResolver.GetLanguageName("nb-NO"), "nb-NO", selectedCultureName)); languages.Add(CreateLanguageSelectOption(LanguageResolver.GetLanguageName("en-US"), "en-US", selectedCultureName)); return(languages); }
public CommerceFilterOptionViewModelBinder(IContentLoader contentLoader, LocalizationService localizationService, LanguageResolver languageResolver, IFacetRegistry facetRegistry) : base(contentLoader) { _contentLoader = contentLoader; _localizationService = localizationService; _languageResolver = languageResolver; _facetRegistry = facetRegistry; }
public void MixingCommentsAndBrankets_4() { var resolve = new LanguageResolver(@" <language> <page id=""1""> <t id=""1"">aaaa(\(bbbb\)cc)cc</t> </page> </language> ".ToXDocument()).Resolve("{1,1}"); Assert.Equal("aaaacc", resolve); }
public void BranketsEscape() { var resolve = new LanguageResolver(@" <language> <page id=""1001""> <t id=""2490"">Shield Generators \(including groups\)</t> </page> </language> ".ToXDocument()).Resolve("{1001,2490}"); Assert.Equal("Shield Generators (including groups)", resolve); }
public void NewLine() { var resolve = new LanguageResolver(@" <language> <page id=""1""> <t id=""1"">aaaa\nbbbb</t> </page> </language> ".ToXDocument()).Resolve("{1,1}"); Assert.Equal("aaaa\nbbbb", resolve); }
public void BranketsIsComment() { var resolve = new LanguageResolver(@" <language> <page id=""1001""> <t id=""9"">(Storage)None</t> </page> </language> ".ToXDocument()).Resolve("{1001,9}"); Assert.Equal("None", resolve); }
private RotationTaskListItemViewModel CreateTableRowViewModel(Rotation rotation) { return(new RotationTaskListItemViewModel { Id = rotation.Id, Language = LanguageResolver.GetLanguageName(rotation.Task.CultureName), Title = rotation.Task.Title, OperatorTask = rotation.OperatorTask.Title, OperatorRole = rotation.OperatorTask.Role.Title, AssistantTask = rotation.AssistantTask.Title, AssistantRole = rotation.AssistantTask.Role.Title }); }
public void OmitPageID() { var resolve = new LanguageResolver(@" <language> <page id=""1""> <t id=""1"">aaaa</t> <t id=""2"">{, 1}bbbb</t> </page> </language> ".ToXDocument()); Assert.Equal("aaaabbbb", resolve.Resolve("{1,2}")); }
public void ReadNextXmlIfNotFound() { var langXml1st = "<language></language>".ToXDocument(); var langXml2st = @" <language> <page id=""1001""> <t id=""1"">Hull</t> </page> </language> ".ToXDocument(); var resolve = new LanguageResolver(langXml1st, langXml2st).Resolve("{1001,1}"); Assert.Equal("Hull", resolve); }
public ReviewsContentLoader(IContentLoader contentLoader, IContentLanguageAccessor languageAccessor, ProjectContentResolver projectContentResolver, IContentVersionRepository contentVersionRepository, LanguageResolver languageResolver, IContentProviderManager contentProviderManager, IContentChildrenSorter childrenSorter) { _contentLoader = contentLoader; _languageAccessor = languageAccessor; _projectContentResolver = projectContentResolver; _contentVersionRepository = contentVersionRepository; _languageResolver = languageResolver; _contentProviderManager = contentProviderManager; _childrenSorter = childrenSorter; }
public TrackingDataFactory(ILineItemCalculator lineItemCalculator, IContentLoader contentLoader, IOrderGroupCalculator orderGroupCalculator, LanguageResolver languageResolver, IOrderRepository orderRepository, ReferenceConverter referenceConverter, IRelationRepository relationRepository, IRecommendationContext recommendationContext, ICurrentMarket currentMarket, IRequestTrackingDataService requestTrackingDataService) : base(lineItemCalculator, contentLoader, orderGroupCalculator, languageResolver, orderRepository, referenceConverter, relationRepository, recommendationContext, currentMarket, requestTrackingDataService) { _currentMarket = currentMarket; _orderRepository = orderRepository; }
public void Recursion() { var resolve = new LanguageResolver(@" <language> <page id=""1001""> <t id=""5802"">Planned Amount of {20201, 1501}</t> </page> <page id=""20201""> <t id=""1501"">Graphene</t> </page> </language> ".ToXDocument()).Resolve("{1001,5802}"); Assert.Equal("Planned Amount of Graphene", resolve); }
public SearchService(ICurrentMarket currentMarket, ICurrencyService currencyService, UrlResolver urlResolver, SearchFacade search, LanguageResolver languageResolver, IContentLoader contentLoader, LocalizationService localizationService) { _search = search; _currentMarket = currentMarket; _currencyService = currencyService; _urlResolver = urlResolver; _languageResolver = languageResolver; _contentLoader = contentLoader; _localizationService = localizationService; }
public DependenciesResolver(ContentSoftLinkIndexer contentSoftLinkIndexer, IContentRepository contentRepository, LanguageResolver languageResolver, ContentLoaderService contentLoaderService, ServiceAccessor <SiteDefinition> currentSiteDefinition, UIDescriptorRegistry uiDescriptorRegistry, ServiceAccessor <HttpContextBase> httpContextAccessor, IApprovalDefinitionRepository approvalDefinitionRepository, LocalizationService localizationService) { _contentSoftLinkIndexer = contentSoftLinkIndexer; _contentRepository = contentRepository; _languageResolver = languageResolver; _contentLoaderService = contentLoaderService; _currentSiteDefinition = currentSiteDefinition; _uiDescriptorRegistry = uiDescriptorRegistry; _httpContextAccessor = httpContextAccessor; _approvalDefinitionRepository = approvalDefinitionRepository; _localizationService = localizationService; }
public void MultipleFieldResolve() { var resolve = new LanguageResolver(@" <language> <page id=""20101""> <t id=""10101"">Discoverer</t> <t id=""10102"">(Discoverer Vanguard){20101,10101} {20111,1101}</t> </page> <page id=""20111""> <t id=""1101"">Vanguard</t> </page> </language> ".ToXDocument()).Resolve("{20101,10102}"); Assert.Equal("Discoverer Vanguard", resolve); }