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