10 instantiations of ViewLocalizer
Microsoft.AspNetCore.Mvc.Localization.Test (10)
ViewLocalizerTest.cs (10)
38var viewLocalizer = new ViewLocalizer(htmlLocalizerFactory.Object, hostingEnvironment.Object); 66var viewLocalizer = new ViewLocalizer(htmlLocalizerFactory.Object, hostingEnvironment.Object); 98var viewLocalizer = new ViewLocalizer(htmlLocalizerFactory.Object, hostingEnvironment.Object); 122var viewLocalizer = new ViewLocalizer(new TestHtmlLocalizerFactory(), hostingEnvironment.Object); 147var viewLocalizer = new ViewLocalizer(new TestHtmlLocalizerFactory(), hostingEnvironment.Object); 173var viewLocalizer = new ViewLocalizer(new TestHtmlLocalizerFactory(), hostingEnvironment.Object); 197var viewLocalizer = new ViewLocalizer(new TestHtmlLocalizerFactory(), hostingEnvironment.Object); 221var viewLocalizer = new ViewLocalizer(new TestHtmlLocalizerFactory(), hostingEnvironment.Object); 245var viewLocalizer = new ViewLocalizer(new TestHtmlLocalizerFactory(), hostingEnvironment.Object); 269var viewLocalizer = new ViewLocalizer(new TestHtmlLocalizerFactory(), hostingEnvironment.Object);
15 references to ViewLocalizer
Microsoft.AspNetCore.Mvc.Localization (2)
MvcLocalizationServices.cs (1)
43services.TryAdd(ServiceDescriptor.Transient<IViewLocalizer, ViewLocalizer>());
ViewLocalizer.cs (1)
24/// Creates a new <see cref="ViewLocalizer"/>.
Microsoft.AspNetCore.Mvc.Localization.Test (13)
MvcLocalizationMvcBuilderExtensionsTest.cs (1)
81Assert.Equal(typeof(ViewLocalizer), service.ImplementationType);
MvcLocalizationMvcCoreBuilderExtensionsTest.cs (1)
81Assert.Equal(typeof(ViewLocalizer), service.ImplementationType);
MvcLocalizationServiceCollectionExtensionsTest.cs (1)
28AssertContainsSingle(collection, typeof(IViewLocalizer), typeof(ViewLocalizer));
ViewLocalizerTest.cs (10)
38var viewLocalizer = new ViewLocalizer(htmlLocalizerFactory.Object, hostingEnvironment.Object); 66var viewLocalizer = new ViewLocalizer(htmlLocalizerFactory.Object, hostingEnvironment.Object); 98var viewLocalizer = new ViewLocalizer(htmlLocalizerFactory.Object, hostingEnvironment.Object); 122var viewLocalizer = new ViewLocalizer(new TestHtmlLocalizerFactory(), hostingEnvironment.Object); 147var viewLocalizer = new ViewLocalizer(new TestHtmlLocalizerFactory(), hostingEnvironment.Object); 173var viewLocalizer = new ViewLocalizer(new TestHtmlLocalizerFactory(), hostingEnvironment.Object); 197var viewLocalizer = new ViewLocalizer(new TestHtmlLocalizerFactory(), hostingEnvironment.Object); 221var viewLocalizer = new ViewLocalizer(new TestHtmlLocalizerFactory(), hostingEnvironment.Object); 245var viewLocalizer = new ViewLocalizer(new TestHtmlLocalizerFactory(), hostingEnvironment.Object); 269var viewLocalizer = new ViewLocalizer(new TestHtmlLocalizerFactory(), hostingEnvironment.Object);