3 implementations of IHtmlLocalizerFactory
Microsoft.AspNetCore.Mvc.Localization (1)
HtmlLocalizerFactory.cs (1)
12public class HtmlLocalizerFactory : IHtmlLocalizerFactory
Microsoft.AspNetCore.Mvc.Localization.Test (2)
MvcLocalizationServiceCollectionExtensionsTest.cs (1)
130public class TestHtmlLocalizerFactory : IHtmlLocalizerFactory
ViewLocalizerTest.cs (1)
341private class TestHtmlLocalizerFactory : IHtmlLocalizerFactory
17 references to IHtmlLocalizerFactory
Microsoft.AspNetCore.Mvc.Localization (7)
HtmlLocalizerFactory.cs (1)
9/// An <see cref="IHtmlLocalizerFactory"/> that creates instances of <see cref="HtmlLocalizer"/> using the
HtmlLocalizerOfT.cs (2)
20/// <param name="factory">The <see cref="IHtmlLocalizerFactory"/>.</param> 21public HtmlLocalizer(IHtmlLocalizerFactory factory)
MvcLocalizationServices.cs (1)
41services.TryAdd(ServiceDescriptor.Singleton<IHtmlLocalizerFactory, HtmlLocalizerFactory>());
ViewLocalizer.cs (3)
19private readonly IHtmlLocalizerFactory _localizerFactory; 26/// <param name="localizerFactory">The <see cref="IHtmlLocalizerFactory"/>.</param> 28public ViewLocalizer(IHtmlLocalizerFactory localizerFactory, IWebHostEnvironment hostingEnvironment)
Microsoft.AspNetCore.Mvc.Localization.Test (10)
HtmlLocalizerOfTTest.cs (2)
19var htmlLocalizerFactory = new Mock<IHtmlLocalizerFactory>(); 41var htmlLocalizerFactory = new Mock<IHtmlLocalizerFactory>();
MvcLocalizationMvcBuilderExtensionsTest.cs (1)
69service = services.FirstOrDefault(sd => sd.ServiceType == typeof(IHtmlLocalizerFactory));
MvcLocalizationMvcCoreBuilderExtensionsTest.cs (1)
69service = services.FirstOrDefault(sd => sd.ServiceType == typeof(IHtmlLocalizerFactory));
MvcLocalizationServiceCollectionExtensionsTest.cs (3)
26AssertContainsSingle(collection, typeof(IHtmlLocalizerFactory), typeof(HtmlLocalizerFactory)); 38collection.Add(ServiceDescriptor.Singleton(typeof(IHtmlLocalizerFactory), typeof(TestHtmlLocalizerFactory))); 46AssertContainsSingle(collection, typeof(IHtmlLocalizerFactory), typeof(TestHtmlLocalizerFactory));
ViewLocalizerTest.cs (3)
32var htmlLocalizerFactory = new Mock<IHtmlLocalizerFactory>(MockBehavior.Loose); 62var htmlLocalizerFactory = new Mock<IHtmlLocalizerFactory>(); 94var htmlLocalizerFactory = new Mock<IHtmlLocalizerFactory>();