275 instantiations of HtmlTestEncoder
Microsoft.AspNetCore.Html.Abstractions.Tests (6)
HtmlContentBuilderExtensionsTest.cs (1)
357content.WriteTo(writer, new HtmlTestEncoder());
HtmlContentBuilderTest.cs (4)
37content.WriteTo(writer, new HtmlTestEncoder()); 53content.WriteTo(writer, new HtmlTestEncoder()); 73testHtmlContent.WriteTo(writer, new HtmlTestEncoder()); 225content.WriteTo(writer, new HtmlTestEncoder());
HtmlFormattableStringTest.cs (1)
209content.WriteTo(writer, new HtmlTestEncoder());
Microsoft.AspNetCore.Mvc.Localization.Test (2)
HtmlLocalizerTest.cs (2)
116localizedHtmlString.WriteTo(writer, new HtmlTestEncoder()); 149() => content.WriteTo(TextWriter.Null, new HtmlTestEncoder()));
Microsoft.AspNetCore.Mvc.Razor.Test (76)
RazorPageActivatorTest.cs (1)
26HtmlEncoder = new HtmlTestEncoder();
RazorPageCreateTagHelperTest.cs (1)
70new HtmlTestEncoder(),
RazorPageTest.cs (14)
37v.HtmlEncoder = new HtmlTestEncoder(); 65v.HtmlEncoder = new HtmlTestEncoder(); 89v.HtmlEncoder = new HtmlTestEncoder(); 194v.HtmlEncoder = new HtmlTestEncoder(); 235v.HtmlEncoder = new HtmlTestEncoder(); 845v.HtmlEncoder = new HtmlTestEncoder(); 979page.HtmlEncoder = new HtmlTestEncoder(); 1021page.HtmlEncoder = new HtmlTestEncoder(); 1067page.HtmlEncoder = new HtmlTestEncoder(); 1110page.HtmlEncoder = new HtmlTestEncoder(); 1140page.HtmlEncoder = new HtmlTestEncoder(); 1206page.HtmlEncoder = new HtmlTestEncoder(); 1239page.HtmlEncoder = new HtmlTestEncoder(); 1441HtmlEncoder = new HtmlTestEncoder();
RazorViewEngineTest.cs (1)
2157: base(pageFactory, Mock.Of<IRazorPageActivator>(), new HtmlTestEncoder(), optionsAccessor, NullLoggerFactory.Instance, new DiagnosticListener("Microsoft.AspNetCore.Mvc.Razor"))
RazorViewTest.cs (52)
35v.HtmlEncoder = new HtmlTestEncoder(); 43new HtmlTestEncoder(), 73new HtmlTestEncoder(), 116new HtmlTestEncoder(), 192new HtmlTestEncoder(), 219new HtmlTestEncoder(), 234var htmlEncoder = new HtmlTestEncoder(); 268new HtmlTestEncoder(), 293new HtmlTestEncoder(), 319new HtmlTestEncoder(), 348new HtmlTestEncoder(), 404new HtmlTestEncoder(), 448new HtmlTestEncoder(), 502new HtmlTestEncoder(), 536new HtmlTestEncoder(), 579new HtmlTestEncoder(), 624new HtmlTestEncoder(), 648var htmlEncoder = new HtmlTestEncoder(); 700new HtmlTestEncoder(), 741new HtmlTestEncoder(), 761var htmlEncoder = new HtmlTestEncoder(); 808new HtmlTestEncoder(), 828var htmlEncoder = new HtmlTestEncoder(); 877new HtmlTestEncoder(), 892var htmlEncoder = new HtmlTestEncoder(); 940new HtmlTestEncoder(), 955var htmlEncoder = new HtmlTestEncoder(); 1009new HtmlTestEncoder(), 1044new HtmlTestEncoder(), 1058var htmlEncoder = new HtmlTestEncoder(); 1112new HtmlTestEncoder(), 1127var htmlEncoder = new HtmlTestEncoder(); 1186new HtmlTestEncoder(), 1227new HtmlTestEncoder(), 1281new HtmlTestEncoder(), 1296var htmlEncoder = new HtmlTestEncoder(); 1351new HtmlTestEncoder(), 1366var htmlEncoder = new HtmlTestEncoder(); 1409new HtmlTestEncoder(), 1424var htmlEncoder = new HtmlTestEncoder(); 1464new HtmlTestEncoder(), 1495new HtmlTestEncoder(), 1513v.HtmlEncoder = new HtmlTestEncoder(); 1524v.HtmlEncoder = new HtmlTestEncoder(); 1542new HtmlTestEncoder(), 1587new HtmlTestEncoder(), 1645new HtmlTestEncoder(), 1690new HtmlTestEncoder(), 1732new HtmlTestEncoder(), 1767new HtmlTestEncoder(), 1810HtmlEncoder = new HtmlTestEncoder(); 1832HtmlEncoder = new HtmlTestEncoder();
TagHelpers\UrlResolutionTagHelperTest.cs (7)
76var tagHelper = new UrlResolutionTagHelper(Mock.Of<IUrlHelperFactory>(), new HtmlTestEncoder()); 113var tagHelper = new UrlResolutionTagHelper(urlHelperFactory.Object, new HtmlTestEncoder()) 173var tagHelper = new UrlResolutionTagHelper(urlHelperFactory.Object, new HtmlTestEncoder()) 234var tagHelper = new UrlResolutionTagHelper(urlHelperFactory.Object, new HtmlTestEncoder()); 290var tagHelper = new UrlResolutionTagHelper(urlHelperFactory.Object, new HtmlTestEncoder()); 367var tagHelper = new UrlResolutionTagHelper(urlHelperFactory.Object, new HtmlTestEncoder()) 413var tagHelper = new UrlResolutionTagHelper(urlHelperFactory.Object, new HtmlTestEncoder())
Microsoft.AspNetCore.Mvc.TagHelpers.Test (116)
CacheTagHelperTest.cs (28)
46var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(cache.Object), new HtmlTestEncoder()) 73var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(cache), new HtmlTestEncoder()) 100var cacheTagHelper1 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(cache), new HtmlTestEncoder()) 122var cacheTagHelper2 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(cache), new HtmlTestEncoder()) 151var cacheTagHelper1 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(cache), new HtmlTestEncoder()) 173var cacheTagHelper2 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(cache), new HtmlTestEncoder()) 196var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(cache), new HtmlTestEncoder()) 236var cacheTagHelper1 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(mockCache.Object), new HtmlTestEncoder()) 259var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(cache), new HtmlTestEncoder()); 274var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(cache), new HtmlTestEncoder()) 292var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(cache), new HtmlTestEncoder()) 310var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(cache), new HtmlTestEncoder()) 337var cacheTagHelper1 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(cache), new HtmlTestEncoder()) 358var cacheTagHelper2 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(cache), new HtmlTestEncoder()) 390var cacheTagHelper1 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(cache), new HtmlTestEncoder()) 412var cacheTagHelper2 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(cache), new HtmlTestEncoder()) 443var cacheTagHelper1 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(cache), new HtmlTestEncoder()) 465var cacheTagHelper2 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(cache), new HtmlTestEncoder()) 512var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(cache), new HtmlTestEncoder()) 578var cacheTagHelper1 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(cache), new HtmlTestEncoder()) 584var cacheTagHelper2 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(cache), new HtmlTestEncoder()) 661var cacheTagHelper1 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(cache), new HtmlTestEncoder()) 667var cacheTagHelper2 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(cache), new HtmlTestEncoder()) 742var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(cache), new HtmlTestEncoder()) 804var encoder = new HtmlTestEncoder(); 852var cacheTagHelper1 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(cache), new HtmlTestEncoder()) 857var cacheTagHelper2 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(cache), new HtmlTestEncoder()) 890var encoder = new HtmlTestEncoder();
CacheTagKeyTest.cs (24)
29var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder()) 49var cacheTagHelper1 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder()) 55var cacheTagHelper2 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder()) 73var cacheTagHelper1 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder()) 79var cacheTagHelper2 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder()) 97var cacheTagHelper1 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder()) 103var cacheTagHelper2 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder()) 124var cacheTagHelper1 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder()) 130var cacheTagHelper2 = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder()) 154new HtmlTestEncoder()) 177var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder()) 206var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder()) 232var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder()) 260var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder()) 286var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder()) 309new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder()) 333var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder()) 353var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder()) 376var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder()) 397var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder()) 424var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder()) 446var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder()) 478var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder()) 510var cacheTagHelper = new CacheTagHelper(new CacheTagHelperMemoryCacheFactory(Mock.Of<IMemoryCache>()), new HtmlTestEncoder())
DistributedCacheTagHelperTest.cs (33)
46new HtmlTestEncoder(), 53new HtmlTestEncoder()) 87new HtmlTestEncoder(), 95new HtmlTestEncoder()) 138new HtmlTestEncoder(), 142new HtmlTestEncoder()) 167new HtmlTestEncoder()) 195new HtmlTestEncoder(), 203new HtmlTestEncoder()) 227new HtmlTestEncoder()) 253new HtmlTestEncoder(), 258new HtmlTestEncoder()) 279new HtmlTestEncoder(), 284new HtmlTestEncoder()); 302new HtmlTestEncoder(), 307new HtmlTestEncoder()) 328new HtmlTestEncoder(), 333new HtmlTestEncoder()) 358new HtmlTestEncoder(), 367new HtmlTestEncoder()) 390new HtmlTestEncoder()) 420new HtmlTestEncoder(), 429new HtmlTestEncoder()) 453new HtmlTestEncoder()) 482new HtmlTestEncoder(), 491new HtmlTestEncoder()) 515new HtmlTestEncoder()) 545new HtmlTestEncoder(), 579new HtmlTestEncoder()) 587new HtmlTestEncoder()) 639new HtmlTestEncoder(), 671new HtmlTestEncoder()) 679new HtmlTestEncoder())
ImageTagHelperTest.cs (1)
326new HtmlTestEncoder(),
LinkTagHelperTest.cs (7)
601var content = HtmlContentUtilities.HtmlContentToString(output, new HtmlTestEncoder()); 642var content = HtmlContentUtilities.HtmlContentToString(output, new HtmlTestEncoder()); 695var content = HtmlContentUtilities.HtmlContentToString(output, new HtmlTestEncoder()); 1010var content = HtmlContentUtilities.HtmlContentToString(output, new HtmlTestEncoder()); 1050var content = HtmlContentUtilities.HtmlContentToString(output.PostElement, new HtmlTestEncoder()); 1092var content = HtmlContentUtilities.HtmlContentToString(output.PostElement, new HtmlTestEncoder()); 1114new HtmlTestEncoder(),
PartialTagHelperTest.cs (8)
182var content = HtmlContentUtilities.HtmlContentToString(output.Content, new HtmlTestEncoder()); 223var content = HtmlContentUtilities.HtmlContentToString(output.Content, new HtmlTestEncoder()); 264var content = HtmlContentUtilities.HtmlContentToString(output.Content, new HtmlTestEncoder()); 306var content = HtmlContentUtilities.HtmlContentToString(output.Content, new HtmlTestEncoder()); 642var content = HtmlContentUtilities.HtmlContentToString(output.Content, new HtmlTestEncoder()); 692var content = HtmlContentUtilities.HtmlContentToString(output.Content, new HtmlTestEncoder()); 788var content = HtmlContentUtilities.HtmlContentToString(output.Content, new HtmlTestEncoder()); 834var content = HtmlContentUtilities.HtmlContentToString(output.Content, new HtmlTestEncoder());
ScriptTagHelperTest.cs (6)
560var content = HtmlContentUtilities.HtmlContentToString(output, new HtmlTestEncoder()); 613var content = HtmlContentUtilities.HtmlContentToString(output, new HtmlTestEncoder()); 947var content = HtmlContentUtilities.HtmlContentToString(output, new HtmlTestEncoder()); 985var content = HtmlContentUtilities.HtmlContentToString(output, new HtmlTestEncoder()); 1024var content = HtmlContentUtilities.HtmlContentToString(output, new HtmlTestEncoder()); 1082new HtmlTestEncoder(),
TagHelperOutputExtensionsTest.cs (8)
974var htmlEncoder = new HtmlTestEncoder(); 995var htmlEncoder = new HtmlTestEncoder(); 1017var htmlEncoder = new HtmlTestEncoder(); 1044var htmlEncoder = new HtmlTestEncoder(); 1063var htmlEncoder = new HtmlTestEncoder(); 1086var htmlEncoder = new HtmlTestEncoder(); 1107var htmlEncoder = new HtmlTestEncoder(); 1130var htmlEncoder = new HtmlTestEncoder();
TestableHtmlGenerator.cs (1)
49new HtmlTestEncoder(),
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (32)
Buffers\ViewBufferTest.cs (4)
175buffer.WriteTo(writer, new HtmlTestEncoder()); 198buffer.WriteTo(writer, new HtmlTestEncoder()); 216await buffer.WriteToAsync(writer, new HtmlTestEncoder()); 240await buffer.WriteToAsync(writer, new HtmlTestEncoder());
Buffers\ViewBufferTextWriterTest.cs (1)
87var writer = new ViewBufferTextWriter(buffer, Encoding.UTF8, new HtmlTestEncoder(), inner.Object);
Rendering\DefaultTemplatesUtilities.cs (2)
261new HtmlTestEncoder(), 284new HtmlTestEncoder(),
Rendering\HtmlHelperCheckboxTest.cs (2)
164hiddenTag.WriteTo(writer, new HtmlTestEncoder()); 230hiddenTag.WriteTo(writer, new HtmlTestEncoder());
Rendering\HtmlHelperFormTest.cs (12)
339serviceProvider.Setup(s => s.GetService(typeof(HtmlEncoder))).Returns(new HtmlTestEncoder()); 386serviceProvider.Setup(s => s.GetService(typeof(HtmlEncoder))).Returns(new HtmlTestEncoder()); 424serviceProvider.Setup(s => s.GetService(typeof(HtmlEncoder))).Returns(new HtmlTestEncoder()); 463serviceProvider.Setup(s => s.GetService(typeof(HtmlEncoder))).Returns(new HtmlTestEncoder()); 501serviceProvider.Setup(s => s.GetService(typeof(HtmlEncoder))).Returns(new HtmlTestEncoder()); 541serviceProvider.Setup(s => s.GetService(typeof(HtmlEncoder))).Returns(new HtmlTestEncoder()); 580serviceProvider.Setup(s => s.GetService(typeof(HtmlEncoder))).Returns(new HtmlTestEncoder()); 620serviceProvider.Setup(s => s.GetService(typeof(HtmlEncoder))).Returns(new HtmlTestEncoder()); 657serviceProvider.Setup(s => s.GetService(typeof(HtmlEncoder))).Returns(new HtmlTestEncoder()); 700serviceProvider.Setup(s => s.GetService(typeof(HtmlEncoder))).Returns(new HtmlTestEncoder()); 742serviceProvider.Setup(s => s.GetService(typeof(HtmlEncoder))).Returns(new HtmlTestEncoder()); 786serviceProvider.Setup(s => s.GetService(typeof(HtmlEncoder))).Returns(new HtmlTestEncoder());
Rendering\HtmlStringTest.cs (1)
20content.WriteTo(writer, new HtmlTestEncoder());
Rendering\TagBuilderTest.cs (3)
84tagBuilder.WriteTo(writer, new HtmlTestEncoder()); 158tagBuilder.WriteTo(writer, new HtmlTestEncoder()); 174tagBuilder.WriteTo(writer, new HtmlTestEncoder());
StringHtmlContentTest.cs (1)
20content.WriteTo(writer, new HtmlTestEncoder());
ViewComponents\ContentViewComponentResultTest.cs (1)
60new HtmlTestEncoder(),
ViewComponents\DefaultViewComponentHelperTest.cs (1)
149new HtmlTestEncoder(),
ViewComponents\HtmlContentViewComponentResultTest.cs (1)
60new HtmlTestEncoder(),
ViewComponents\ViewComponentContextTest.cs (2)
39new HtmlTestEncoder(), 99new HtmlTestEncoder(),
ViewComponents\ViewViewComponentResultTest.cs (1)
540new HtmlTestEncoder(),
Microsoft.AspNetCore.Mvc.Views.TestCommon (2)
HtmlContentUtilities.cs (1)
16encoder = new HtmlTestEncoder();
HtmlGeneratorUtilities.cs (1)
44new HtmlTestEncoder(),
Microsoft.AspNetCore.Razor.Runtime.Test (3)
Runtime\TagHelpers\TagHelperExecutionContextTest.cs (3)
238new HtmlTestEncoder(), 288Assert.Equal(expectedContent, actualContent.GetContent(new HtmlTestEncoder())); 387var firstEncoder = new HtmlTestEncoder();
Microsoft.AspNetCore.Razor.Test (37)
TagHelpers\DefaultTagHelperContentTest.cs (18)
38Assert.Equal(expected, tagHelperContent.GetContent(new HtmlTestEncoder())); 53Assert.Equal(expected, tagHelperContent.GetContent(new HtmlTestEncoder())); 66Assert.Equal("Hi", tagHelperContent.GetContent(new HtmlTestEncoder())); 80Assert.Equal("Hello World!", tagHelperContent.GetContent(new HtmlTestEncoder())); 97Assert.Equal(expected, copiedTagHelperContent.GetContent(new HtmlTestEncoder())); 228Assert.Equal(expected, tagHelperContent.GetContent(new HtmlTestEncoder())); 243tagHelperContent.GetContent(new HtmlTestEncoder())); 265tagHelperContent.GetContent(new HtmlTestEncoder())); 281Assert.Equal(expected, tagHelperContent.GetContent(new HtmlTestEncoder())); 300Assert.Equal(expected, copiedTagHelperContent.GetContent(new HtmlTestEncoder())); 693Assert.Equal(expected, tagHelperContent.GetContent(new HtmlTestEncoder())); 707Assert.Equal(expected, tagHelperContent.GetContent(new HtmlTestEncoder())); 724Assert.Equal(expected, tagHelperContent.GetContent(new HtmlTestEncoder())); 739Assert.Equal(expected, tagHelperContent.GetContent(new HtmlTestEncoder())); 754Assert.Equal(expected, tagHelperContent.GetContent(new HtmlTestEncoder())); 767tagHelperContent.WriteTo(writer, new HtmlTestEncoder()); 783tagHelperContent.WriteTo(writer, new HtmlTestEncoder()); 799tagHelperContent.WriteTo(writer, new HtmlTestEncoder());
TagHelpers\TagHelperOutputTest.cs (19)
98new HtmlTestEncoder(), 220tagHelperOutput.PreElement.GetContent(new HtmlTestEncoder())); 238tagHelperOutput.PostElement.GetContent(new HtmlTestEncoder())); 279tagHelperOutput.PreContent.GetContent(new HtmlTestEncoder())); 297tagHelperOutput.Content.GetContent(new HtmlTestEncoder())); 315tagHelperOutput.PostContent.GetContent(new HtmlTestEncoder())); 333Assert.Empty(tagHelperOutput.PreElement.GetContent(new HtmlTestEncoder())); 335Assert.Empty(tagHelperOutput.PreContent.GetContent(new HtmlTestEncoder())); 337Assert.Empty(tagHelperOutput.Content.GetContent(new HtmlTestEncoder())); 339Assert.Empty(tagHelperOutput.PostContent.GetContent(new HtmlTestEncoder())); 341Assert.Empty(tagHelperOutput.PostElement.GetContent(new HtmlTestEncoder())); 365Assert.Empty(tagHelperOutput.PreElement.GetContent(new HtmlTestEncoder())); 367Assert.Empty(tagHelperOutput.PreContent.GetContent(new HtmlTestEncoder())); 369Assert.Empty(tagHelperOutput.Content.GetContent(new HtmlTestEncoder())); 371Assert.Empty(tagHelperOutput.PostContent.GetContent(new HtmlTestEncoder())); 373Assert.Empty(tagHelperOutput.PostElement.GetContent(new HtmlTestEncoder())); 1033var testEncoder = new HtmlTestEncoder(); 1050var testEncoder = new HtmlTestEncoder(); 1070var testEncoder = new HtmlTestEncoder();
Microsoft.Extensions.WebEncoders.Tests (1)
HtmlTestEncoderTest.cs (1)
17var encoder = new HtmlTestEncoder();
29 references to HtmlTestEncoder
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
Infrastructure\MvcEncodedTestFixtureOfT.cs (1)
23services.TryAddTransient<HtmlEncoder, HtmlTestEncoder>();
Microsoft.AspNetCore.Mvc.Razor.Test (11)
RazorViewTest.cs (11)
234var htmlEncoder = new HtmlTestEncoder(); 648var htmlEncoder = new HtmlTestEncoder(); 761var htmlEncoder = new HtmlTestEncoder(); 828var htmlEncoder = new HtmlTestEncoder(); 892var htmlEncoder = new HtmlTestEncoder(); 955var htmlEncoder = new HtmlTestEncoder(); 1058var htmlEncoder = new HtmlTestEncoder(); 1127var htmlEncoder = new HtmlTestEncoder(); 1296var htmlEncoder = new HtmlTestEncoder(); 1366var htmlEncoder = new HtmlTestEncoder(); 1424var htmlEncoder = new HtmlTestEncoder();
Microsoft.AspNetCore.Mvc.TagHelpers.Test (10)
CacheTagHelperTest.cs (2)
804var encoder = new HtmlTestEncoder(); 890var encoder = new HtmlTestEncoder();
TagHelperOutputExtensionsTest.cs (8)
974var htmlEncoder = new HtmlTestEncoder(); 995var htmlEncoder = new HtmlTestEncoder(); 1017var htmlEncoder = new HtmlTestEncoder(); 1044var htmlEncoder = new HtmlTestEncoder(); 1063var htmlEncoder = new HtmlTestEncoder(); 1086var htmlEncoder = new HtmlTestEncoder(); 1107var htmlEncoder = new HtmlTestEncoder(); 1130var htmlEncoder = new HtmlTestEncoder();
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
ViewComponentResultTest.cs (1)
678services.AddSingleton<HtmlEncoder, HtmlTestEncoder>();
Microsoft.AspNetCore.Razor.Runtime.Test (1)
Runtime\TagHelpers\TagHelperExecutionContextTest.cs (1)
387var firstEncoder = new HtmlTestEncoder();
Microsoft.AspNetCore.Razor.Test (3)
TagHelpers\TagHelperOutputTest.cs (3)
1033var testEncoder = new HtmlTestEncoder(); 1050var testEncoder = new HtmlTestEncoder(); 1070var testEncoder = new HtmlTestEncoder();
Microsoft.Extensions.WebEncoders.Tests (2)
EncoderServiceCollectionExtensionsTests.cs (1)
68serviceCollection.AddSingleton<HtmlEncoder, HtmlTestEncoder>();
HtmlTestEncoderTest.cs (1)
17var encoder = new HtmlTestEncoder();