190 references to SetContent
BasicWebSite (1)
RequestScopedTagHelper.cs (1)
19
output.Content.
SetContent
(RequestIdService.RequestId);
ControllersFromServicesWebSite (1)
TagHelpers\InServicesTagHelper.cs (1)
22
output.Content.
SetContent
(_value.Value.ToString(CultureInfo.InvariantCulture));
Microsoft.AspNetCore.Mvc.TagHelpers (1)
ScriptTagHelper.cs (1)
312
output.Content.
SetContent
(string.Empty);
Microsoft.AspNetCore.Mvc.TagHelpers.Test (152)
AnchorTagHelperTest.cs (16)
46
tagHelperContent.
SetContent
("Something Else");
49
output.Content.
SetContent
("Something");
103
tagHelperContent.
SetContent
("Something");
106
output.Content.
SetContent
(string.Empty);
153
tagHelperContent.
SetContent
("Something");
156
output.Content.
SetContent
(string.Empty);
205
tagHelperContent.
SetContent
("Something");
208
output.Content.
SetContent
(string.Empty);
263
tagHelperContent.
SetContent
("Something");
266
output.Content.
SetContent
(string.Empty);
322
tagHelperContent.
SetContent
("Something");
325
output.Content.
SetContent
(string.Empty);
380
tagHelperContent.
SetContent
("Something");
383
output.Content.
SetContent
(string.Empty);
431
tagHelperContent.
SetContent
("Something");
434
output.Content.
SetContent
(string.Empty);
CacheTagHelperTest.cs (22)
34
value.Setup(c => c.Value).Returns(new DefaultTagHelperContent().
SetContent
("ok"));
150
tagHelperOutput1.PostContent.
SetContent
("</cache>");
171
tagHelperOutput2.PreContent.
SetContent
("<cache>");
172
tagHelperOutput2.PostContent.
SetContent
("</cache>");
235
tagHelperOutput1.PostContent.
SetContent
("</cache>");
335
tagHelperOutput1.PreContent.
SetContent
("<cache>");
336
tagHelperOutput1.PostContent.
SetContent
("</cache>");
356
tagHelperOutput2.PreContent.
SetContent
("<cache>");
357
tagHelperOutput2.PostContent.
SetContent
("</cache>");
388
tagHelperOutput1.PreContent.
SetContent
("<cache>");
389
tagHelperOutput1.PostContent.
SetContent
("</cache>");
410
tagHelperOutput2.PreContent.
SetContent
("<cache>");
411
tagHelperOutput2.PostContent.
SetContent
("</cache>");
441
tagHelperOutput1.PreContent.
SetContent
("<cache>");
442
tagHelperOutput1.PostContent.
SetContent
("</cache>");
463
tagHelperOutput2.PreContent.
SetContent
("<cache>");
464
tagHelperOutput2.PostContent.
SetContent
("</cache>");
487
expectedContent.
SetContent
("some-content");
510
tagHelperOutput.PreContent.
SetContent
("<cache>");
511
tagHelperOutput.PostContent.
SetContent
("</cache>");
823
content.
SetContent
(expected);
911
content.
SetContent
(expected);
DistributedCacheTagHelperTest.cs (15)
200
tagHelperOutput1.PostContent.
SetContent
("</cache>");
223
tagHelperOutput2.PreContent.
SetContent
("<cache>");
224
tagHelperOutput2.PostContent.
SetContent
("</cache>");
363
tagHelperOutput1.PreContent.
SetContent
("<cache>");
364
tagHelperOutput1.PostContent.
SetContent
("</cache>");
386
tagHelperOutput2.PreContent.
SetContent
("<cache>");
387
tagHelperOutput2.PostContent.
SetContent
("</cache>");
425
tagHelperOutput1.PreContent.
SetContent
("<distributed-cache>");
426
tagHelperOutput1.PostContent.
SetContent
("</distributed-cache>");
449
tagHelperOutput2.PreContent.
SetContent
("<distributed-cache>");
450
tagHelperOutput2.PostContent.
SetContent
("</distributed-cache>");
487
tagHelperOutput1.PreContent.
SetContent
("<distributed-cache>");
488
tagHelperOutput1.PostContent.
SetContent
("</distributed-cache>");
511
tagHelperOutput2.PreContent.
SetContent
("<distributed-cache>");
512
tagHelperOutput2.PostContent.
SetContent
("</distributed-cache>");
EnvironmentTagHelperTest.cs (1)
232
tagHelperContent.
SetContent
(childContent);
FormActionTagHelperTest.cs (2)
39
tagHelperContent.
SetContent
("Something Else"); // ignored
114
tagHelperContent.
SetContent
("Something Else"); // ignored
FormTagHelperTest.cs (17)
41
tagHelperContent.
SetContent
("Something");
89
tagHelperContent.
SetContent
("Something");
145
tagHelperContent.
SetContent
("Something");
202
tagHelperContent.
SetContent
("Something");
260
tagHelperContent.
SetContent
("Something");
323
tagHelperContent.
SetContent
("Something Else");
326
output.PostContent.
SetContent
("Something");
395
tagHelperContent.
SetContent
("Something");
450
tagHelperContent.
SetContent
("Something");
521
tagHelperContent.
SetContent
("Something");
640
tagHelperContent.
SetContent
("Something");
697
tagHelperContent.
SetContent
("Something");
754
tagHelperContent.
SetContent
("Something");
812
tagHelperContent.
SetContent
("Something");
867
tagHelperContent.
SetContent
("Something");
913
tagHelperContent.
SetContent
("Something");
983
tagHelperContent.
SetContent
("Something");
ImageTagHelperTest.cs (1)
353
tagHelperContent.
SetContent
(default(string));
InputTagHelperTest.cs (21)
655
tagHelperContent.
SetContent
("Something");
661
output.PreContent.
SetContent
(expectedPreContent);
662
output.Content.
SetContent
(expectedContent);
663
output.PostContent.
SetContent
(expectedPostContent);
1168
tagHelperContent.
SetContent
("Something");
1268
tagHelperContent.
SetContent
("Something");
1274
output.PreContent.
SetContent
(expectedPreContent);
1275
output.Content.
SetContent
(expectedContent);
1276
output.PostContent.
SetContent
(expectedPostContent);
1434
tagHelperContent.
SetContent
("Something");
1440
output.PreContent.
SetContent
(expectedPreContent);
1441
output.Content.
SetContent
(expectedContent);
1442
output.PostContent.
SetContent
(expectedPostContent);
1534
tagHelperContent.
SetContent
("Something");
1540
output.PreContent.
SetContent
(expectedPreContent);
1541
output.Content.
SetContent
(expectedContent);
1542
output.PostContent.
SetContent
(expectedPostContent);
1646
tagHelperContent.
SetContent
("Something");
1652
output.PreContent.
SetContent
(expectedPreContent);
1653
output.Content.
SetContent
(expectedContent);
1654
output.PostContent.
SetContent
(expectedPostContent);
OptionTagHelperTest.cs (10)
417
output.Content.
SetContent
(originalContent);
481
tagHelperContent.
SetContent
(originalContent);
487
output.PreContent.
SetContent
(originalPreContent);
488
output.Content.
SetContent
(originalContent);
489
output.PostContent.
SetContent
(originalPostContent);
546
tagHelperContent.
SetContent
(originalContent);
552
output.PreContent.
SetContent
(originalPreContent);
553
output.Content.
SetContent
(originalContent);
554
output.PostContent.
SetContent
(originalPostContent);
577
tagHelperOutput.Content.
SetContent
(content);
SelectTagHelperTest.cs (6)
210
tagHelperContent.
SetContent
("Something");
216
output.PreContent.
SetContent
(expectedPreContent);
217
output.Content.
SetContent
(expectedContent);
218
output.PostContent.
SetContent
(originalPostContent);
569
tagHelperContent.
SetContent
("Something");
651
tagHelperContent.
SetContent
("Something");
TextAreaTagHelperTest.cs (2)
136
tagHelperContent.
SetContent
("Something");
142
output.Content.
SetContent
("original content");
ValidationMessageTagHelperTest.cs (12)
56
tagHelperContent.
SetContent
("Something");
59
output.PreContent.
SetContent
(expectedPreContent);
60
output.Content.
SetContent
(expectedContent);
61
output.PostContent.
SetContent
(expectedPostContent);
270
tagHelperContent.
SetContent
("Something");
273
output.PreContent.
SetContent
(expectedPreContent);
274
output.Content.
SetContent
(expectedContent);
275
output.PostContent.
SetContent
(expectedPostContent);
389
tagHelperContent.
SetContent
(childContent);
430
output.PreContent.
SetContent
(expectedPreContent);
431
output.Content.
SetContent
(expectedContent);
432
output.PostContent.
SetContent
(expectedPostContent);
ValidationSummaryTagHelperTest.cs (27)
70
output.PreContent.
SetContent
(expectedPreContent);
71
output.Content.
SetContent
(expectedContent);
72
output.PostContent.
SetContent
("Custom Content");
235
tagHelperContent.
SetContent
("Something");
238
output.PreContent.
SetContent
(expectedPreContent);
239
output.Content.
SetContent
(expectedContent);
240
output.PostContent.
SetContent
("Custom Content");
305
tagHelperContent.
SetContent
("Something");
308
output.PreContent.
SetContent
(expectedPreContent);
309
output.Content.
SetContent
(expectedContent);
310
output.PostContent.
SetContent
("Custom Content");
369
output.PreContent.
SetContent
(expectedPreContent);
370
output.Content.
SetContent
(expectedContent);
371
output.PostContent.
SetContent
(expectedPostContent);
424
output.PreContent.
SetContent
(expectedPreContent);
425
output.Content.
SetContent
(expectedContent);
426
output.PostContent.
SetContent
("Content of validation summary");
483
output.PreContent.
SetContent
(expectedPreContent);
484
output.Content.
SetContent
(expectedContent);
485
output.PostContent.
SetContent
(expectedPostContent);
539
output.PreContent.
SetContent
(expectedPreContent);
540
output.Content.
SetContent
(expectedContent);
541
output.PostContent.
SetContent
("Content of validation message");
621
tagHelperContent.
SetContent
("Something");
624
output.PreContent.
SetContent
(expectedPreContent);
625
output.Content.
SetContent
(expectedContent);
626
output.PostContent.
SetContent
("Custom Content");
Microsoft.AspNetCore.Razor.Runtime.Test (2)
Runtime\TagHelpers\TagHelperExecutionContextTest.cs (2)
73
tagHelperContent.
SetContent
(content);
277
tagHelperContent.
SetContent
(content);
Microsoft.AspNetCore.Razor.Test (32)
TagHelpers\DefaultTagHelperContentTest.cs (21)
18
tagHelperContent.
SetContent
("hello world");
35
tagHelperContent.
SetContent
("Hello World!");
47
tagHelperContent.
SetContent
("Contoso");
50
tagHelperContent.
SetContent
("Hello World!");
91
tagHelperContent.
SetContent
(content);
208
tagHelperContent.
SetContent
(expected);
274
helloWorldContent.
SetContent
("HelloWorld");
310
tagHelperContent.
SetContent
(string.Empty);
385
tagHelperContent.
SetContent
(data);
398
tagHelperContent.
SetContent
(" ");
634
tagHelperContent.
SetContent
("Hello");
659
copiedTagHelperContent.
SetContent
("Hello");
673
tagHelperContent.
SetContent
("Hello World");
690
tagHelperContent.
SetContent
("Hello ").Append("World!");
704
tagHelperContent.
SetContent
("First ").AppendFormat(CultureInfo.InvariantCulture, "{0} Third", "Second");
719
.
SetContent
("First ")
733
tagHelperContent.
SetContent
("Some Random Content");
736
tagHelperContent.Clear().
SetContent
("Hello World");
748
tagHelperContent.
SetContent
("Some Random Content");
751
tagHelperContent.Clear().
SetContent
("Hello ").Append("World!");
763
tagHelperContent.
SetContent
("Hello ");
TagHelpers\TagHelperOutputTest.cs (11)
18
initialOutputChildContent.
SetContent
("Initial output content.");
21
initialGetChildContent.
SetContent
(expectedGetChildContentContent);
35
output.PreContent.
SetContent
("something");
36
output.PostContent.
SetContent
("something");
37
output.PreElement.
SetContent
("something");
38
output.PostElement.
SetContent
("something");
210
tagHelperOutput.PreElement.
SetContent
("Hello World");
228
tagHelperOutput.PostElement.
SetContent
("Hello World");
269
tagHelperOutput.PreContent.
SetContent
("Hello World");
287
tagHelperOutput.Content.
SetContent
("Hello World");
305
tagHelperOutput.PostContent.
SetContent
("Hello World");
TagHelpersWebSite (1)
TagHelpers\ATagHelper.cs (1)
44
output.PreContent.
SetContent
("My ");