159 references to PostContent
Microsoft.AspNetCore.Mvc.Razor.Test (4)
TagHelpers\TagHelperComponentTagHelperTest.cs (4)
181Assert.Equal("Processed1", output.PostContent.GetContent()); 214Assert.Equal("Processed0Processed1Processed2", output.PostContent.GetContent()); 359output.PostContent.AppendHtml("Processed1"); 381output.PostContent.AppendHtml("Processed" + Order);
Microsoft.AspNetCore.Mvc.TagHelpers (6)
FormTagHelper.cs (2)
301output.PostContent.AppendHtml(tagBuilder.InnerHtml); 316output.PostContent.AppendHtml(antiforgeryTag);
RenderAtEndOfFormTagHelper.cs (1)
57output.PostContent.AppendHtml(formContext.EndOfFormContent[i]);
SelectTagHelper.cs (2)
129output.PostContent.AppendHtml(options); 160output.PostContent.AppendHtml(tagBuilder.InnerHtml);
ValidationSummaryTagHelper.cs (1)
106output.PostContent.AppendHtml(tagBuilder.InnerHtml);
Microsoft.AspNetCore.Mvc.TagHelpers.Test (125)
CacheTagHelperTest.cs (30)
84Assert.Empty(tagHelperOutput.PostContent.GetContent()); 113Assert.Empty(tagHelperOutput1.PostContent.GetContent()); 135Assert.Empty(tagHelperOutput2.PostContent.GetContent()); 150tagHelperOutput1.PostContent.SetContent("</cache>"); 163Assert.Empty(tagHelperOutput1.PostContent.GetContent()); 172tagHelperOutput2.PostContent.SetContent("</cache>"); 185Assert.Empty(tagHelperOutput2.PostContent.GetContent()); 235tagHelperOutput1.PostContent.SetContent("</cache>"); 246Assert.Empty(tagHelperOutput1.PostContent.GetContent()); 336tagHelperOutput1.PostContent.SetContent("</cache>"); 348Assert.Empty(tagHelperOutput1.PostContent.GetContent()); 357tagHelperOutput2.PostContent.SetContent("</cache>"); 370Assert.Empty(tagHelperOutput2.PostContent.GetContent()); 389tagHelperOutput1.PostContent.SetContent("</cache>"); 401Assert.Empty(tagHelperOutput1.PostContent.GetContent()); 411tagHelperOutput2.PostContent.SetContent("</cache>"); 423Assert.Empty(tagHelperOutput2.PostContent.GetContent()); 442tagHelperOutput1.PostContent.SetContent("</cache>"); 454Assert.Empty(tagHelperOutput1.PostContent.GetContent()); 464tagHelperOutput2.PostContent.SetContent("</cache>"); 476Assert.Empty(tagHelperOutput2.PostContent.GetContent()); 511tagHelperOutput.PostContent.SetContent("</cache>"); 610Assert.Empty(tagHelperOutput1.PostContent.GetContent()); 615Assert.Empty(tagHelperOutput2.PostContent.GetContent()); 693Assert.Empty(tagHelperOutput1.PostContent.GetContent()); 698Assert.Empty(tagHelperOutput2.PostContent.GetContent()); 757Assert.Empty(tagHelperOutput1.PostContent.GetContent()); 769Assert.Empty(tagHelperOutput2.PostContent.GetContent()); 781Assert.Empty(tagHelperOutput3.PostContent.GetContent()); 793Assert.Empty(tagHelperOutput4.PostContent.GetContent());
DistributedCacheTagHelperTest.cs (23)
107Assert.Empty(tagHelperOutput.PostContent.GetContent()); 156Assert.Empty(tagHelperOutput1.PostContent.GetContent()); 181Assert.Empty(tagHelperOutput2.PostContent.GetContent()); 200tagHelperOutput1.PostContent.SetContent("</cache>"); 215Assert.Empty(tagHelperOutput1.PostContent.GetContent()); 224tagHelperOutput2.PostContent.SetContent("</cache>"); 239Assert.Empty(tagHelperOutput2.PostContent.GetContent()); 364tagHelperOutput1.PostContent.SetContent("</cache>"); 378Assert.Empty(tagHelperOutput1.PostContent.GetContent()); 387tagHelperOutput2.PostContent.SetContent("</cache>"); 402Assert.Empty(tagHelperOutput2.PostContent.GetContent()); 426tagHelperOutput1.PostContent.SetContent("</distributed-cache>"); 440Assert.Empty(tagHelperOutput1.PostContent.GetContent()); 450tagHelperOutput2.PostContent.SetContent("</distributed-cache>"); 464Assert.Empty(tagHelperOutput2.PostContent.GetContent()); 488tagHelperOutput1.PostContent.SetContent("</distributed-cache>"); 502Assert.Empty(tagHelperOutput1.PostContent.GetContent()); 512tagHelperOutput2.PostContent.SetContent("</distributed-cache>"); 526Assert.Empty(tagHelperOutput2.PostContent.GetContent()); 613Assert.Empty(tagHelperOutput1.PostContent.GetContent()); 618Assert.Empty(tagHelperOutput2.PostContent.GetContent()); 705Assert.Empty(tagHelperOutput1.PostContent.GetContent()); 710Assert.Empty(tagHelperOutput2.PostContent.GetContent());
EnvironmentTagHelperTest.cs (2)
149Assert.Empty(output.PostContent.GetContent()); 182Assert.Empty(output.PostContent.GetContent());
FormActionTagHelperTest.cs (2)
82Assert.False(output.PostContent.IsModified); 156Assert.False(output.PostContent.IsModified);
FormTagHelperTest.cs (14)
121Assert.Equal(expectedPostContent, output.PostContent.GetContent()); 175Assert.Equal(expectedPostContent, output.PostContent.GetContent()); 232Assert.Equal(expectedPostContent, output.PostContent.GetContent()); 290Assert.Equal(expectedPostContent, output.PostContent.GetContent()); 326output.PostContent.SetContent("Something"); 365Assert.Equal(expectedPostContent, output.PostContent.GetContent()); 429Assert.Equal(expectedPostContent, output.PostContent.GetContent()); 500Assert.Empty(output.PostContent.GetContent()); 553Assert.Empty(output.PostContent.GetContent()); 677Assert.Empty(output.PostContent.GetContent()); 734Assert.Empty(output.PostContent.GetContent()); 792Assert.Empty(output.PostContent.GetContent()); 846Assert.Empty(output.PostContent.GetContent()); 1003Assert.Equal(expectedPostContent, output.PostContent.GetContent());
InputTagHelperTest.cs (18)
663output.PostContent.SetContent(expectedPostContent); 689Assert.Equal(expectedPostContent, output.PostContent.GetContent()); 760Assert.Empty(output.PostContent.GetContent()); 831Assert.Empty(output.PostContent.GetContent()); 1176output.PostContent.AppendHtml(expectedPostContent); 1213Assert.Equal(expectedPostContent, output.PostContent.GetContent()); 1276output.PostContent.SetContent(expectedPostContent); 1318Assert.Equal(expectedPostContent, output.PostContent.GetContent()); 1442output.PostContent.SetContent(expectedPostContent); 1483Assert.Equal(expectedPostContent, output.PostContent.GetContent()); 1542output.PostContent.SetContent(expectedPostContent); 1578Assert.Equal(expectedPostContent, output.PostContent.GetContent()); 1654output.PostContent.SetContent(expectedPostContent); 1696Assert.Equal(expectedPostContent, output.PostContent.GetContent()); 1812Assert.Empty(output.PostContent.GetContent()); 1881Assert.Empty(output.PostContent.GetContent()); 1950Assert.Empty(output.PostContent.GetContent()); 2044Assert.Empty(output.PostContent.GetContent());
LabelTagHelperTest.cs (2)
202output.PostContent.AppendHtml(expectedPostContent); 223Assert.Equal(expectedPostContent, output.PostContent.GetContent());
OptionTagHelperTest.cs (2)
489output.PostContent.SetContent(originalPostContent); 554output.PostContent.SetContent(originalPostContent);
RenderAtEndOfFormTagHelperTest.cs (2)
77Assert.Equal(expectedOutput, tagHelperOutput.PostContent.GetContent()); 117Assert.Equal(expectedOutput, tagHelperExecutionContext.Output.PostContent.GetContent());
SelectTagHelperTest.cs (8)
218output.PostContent.SetContent(originalPostContent); 243Assert.Equal(expectedPostContent, output.PostContent.GetContent()); 308output.PostContent.AppendHtml(originalPostContent); 342Assert.Equal(expectedPostContent, HtmlContentUtilities.HtmlContentToString(output.PostContent)); 399output.PostContent.AppendHtml(originalPostContent); 423Assert.Equal(expectedPostContent, HtmlContentUtilities.HtmlContentToString(output.PostContent)); 488output.PostContent.AppendHtml(originalPostContent); 522Assert.Equal(expectedPostContent, HtmlContentUtilities.HtmlContentToString(output.PostContent));
ValidationMessageTagHelperTest.cs (6)
61output.PostContent.SetContent(expectedPostContent); 84Assert.Equal(expectedPostContent, output.PostContent.GetContent()); 275output.PostContent.SetContent(expectedPostContent); 287Assert.Equal(expectedPostContent, output.PostContent.GetContent()); 432output.PostContent.SetContent(expectedPostContent); 452Assert.Equal(expectedPostContent, output.PostContent.GetContent());
ValidationSummaryTagHelperTest.cs (16)
72output.PostContent.SetContent("Custom Content"); 91output.PostContent.GetContent()); 240output.PostContent.SetContent("Custom Content"); 265output.PostContent.GetContent()); 310output.PostContent.SetContent("Custom Content"); 331output.PostContent.GetContent()); 371output.PostContent.SetContent(expectedPostContent); 389Assert.Equal(expectedPostContent, output.PostContent.GetContent()); 426output.PostContent.SetContent("Content of validation summary"); 461Assert.Equal("Content of validation summaryNew HTML", output.PostContent.GetContent()); 485output.PostContent.SetContent(expectedPostContent); 504Assert.Equal(expectedPostContent, output.PostContent.GetContent()); 541output.PostContent.SetContent("Content of validation message"); 560Assert.Equal("Content of validation messageNew HTML", output.PostContent.GetContent()); 626output.PostContent.SetContent("Custom Content"); 643output.PostContent.GetContent());
Microsoft.AspNetCore.Razor (2)
TagHelpers\TagHelperOutput.cs (2)
99/// before <see cref="PostContent"/></remarks> 204/// <see cref="Content"/>, <see cref="PostContent"/>, and <see cref="PostElement"/> to suppress output.
Microsoft.AspNetCore.Razor.Test (17)
TagHelpers\TagHelperOutputTest.cs (17)
36output.PostContent.SetContent("something"); 57Assert.False(output.PostContent.IsModified); 216Assert.NotNull(tagHelperOutput.PostContent); 234Assert.NotNull(tagHelperOutput.PostContent); 275Assert.NotNull(tagHelperOutput.PostContent); 293Assert.NotNull(tagHelperOutput.PostContent); 305tagHelperOutput.PostContent.SetContent("Hello World"); 311Assert.NotNull(tagHelperOutput.PostContent); 315tagHelperOutput.PostContent.GetContent(new HtmlTestEncoder())); 325tagHelperOutput.PostContent.Append("Post Content"); 338Assert.NotNull(tagHelperOutput.PostContent); 339Assert.Empty(tagHelperOutput.PostContent.GetContent(new HtmlTestEncoder())); 358tagHelperOutput.PostContent.Append("Post Content"); 370Assert.NotNull(tagHelperOutput.PostContent); 371Assert.Empty(tagHelperOutput.PostContent.GetContent(new HtmlTestEncoder())); 1083Assert.Equal(string.Empty, output.PostContent.GetContent()); 1126output.PostContent.AppendHtml(postContent);
RazorWebSite (2)
Services\TestBodyTagHelperComponent.cs (1)
39output.PostContent.AppendHtml(_html);
Services\TestHeadTagHelperComponent.cs (1)
16output.PostContent.AppendHtml("<script>'This was injected!!'</script>");
TagHelpersWebSite (3)
TagHelpers\BoldTagHelper.cs (1)
23output.PostContent.AppendHtml("</b>");
TagHelpers\NullEncoderTagHelper.cs (1)
20output.PostContent
TagHelpers\WebsiteInformationTagHelper.cs (1)
17output.PostContent.AppendHtml(string.Format(