26 writes to Property1
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (26)
DefaultDisplayTemplatesTest.cs (8)
55
var model = new DefaultTemplatesUtilities.ObjectTemplateModel {
Property1
= "p1", Property2 = null };
93
model.
Property1
= simpleDisplayText;
150
var model = new DefaultTemplatesUtilities.ObjectTemplateModel {
Property1
= "p1", Property2 = null };
258
var model = new DefaultTemplatesUtilities.ObjectTemplateModel {
Property1
= "Model string" };
280
var model = new DefaultTemplatesUtilities.ObjectTemplateModel {
Property1
= "Model string" };
302
var model = new DefaultTemplatesUtilities.ObjectTemplateModel {
Property1
= "Model string" };
325
var model = new DefaultTemplatesUtilities.ObjectTemplateModel {
Property1
= propertyValue, };
348
var model = new DefaultTemplatesUtilities.ObjectTemplateModel {
Property1
= "Test string", };
DefaultEditorTemplatesTest.cs (15)
192
var model = new DefaultTemplatesUtilities.ObjectTemplateModel {
Property1
= "p1", Property2 = null };
229
var model = new DefaultTemplatesUtilities.ObjectTemplateModel {
Property1
= "p1", Property2 = null };
314
Property1
= simpleDisplayText,
390
var model = new DefaultTemplatesUtilities.ObjectTemplateModel {
Property1
= "p1", Property2 = null };
571
var model = new DefaultTemplatesUtilities.ObjectTemplateModel {
Property1
= "True" };
604
var model = new DefaultTemplatesUtilities.ObjectTemplateModel {
Property1
= "True" };
636
var model = new DefaultTemplatesUtilities.ObjectTemplateModel {
Property1
= "True" };
679
var model = new DefaultTemplatesUtilities.ObjectTemplateModel {
Property1
= "True" };
721
var model = new DefaultTemplatesUtilities.ObjectTemplateModel {
Property1
= "True" };
764
var model = new DefaultTemplatesUtilities.ObjectTemplateModel {
Property1
= "True" };
805
var model = new DefaultTemplatesUtilities.ObjectTemplateModel {
Property1
= "Model string" };
1222
var model = new DefaultTemplatesUtilities.ObjectTemplateModel {
Property1
= "Model string" };
1246
var model = new DefaultTemplatesUtilities.ObjectTemplateModel {
Property1
= "Model string" };
1271
var model = new DefaultTemplatesUtilities.ObjectTemplateModel {
Property1
= propertyValue, };
1296
var model = new DefaultTemplatesUtilities.ObjectTemplateModel {
Property1
= "Test string", };
Rendering\HtmlHelperSelectTest.cs (3)
393
var model = new DefaultTemplatesUtilities.ObjectTemplateModel {
Property1
= "2" };
646
var model = new DefaultTemplatesUtilities.ObjectTemplateModel {
Property1
= "2" };
670
var model = new DefaultTemplatesUtilities.ObjectTemplateModel {
Property1
= "2" };
43 references to Property1
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (43)
DefaultDisplayTemplatesTest.cs (3)
292
var result = helper.DisplayFor(m => m.
Property1
);
337
var result = helper.DisplayFor(m => m.
Property1
);
366
var ex = Assert.Throws<ArgumentException>(() => helper.DisplayFor(m => m.
Property1
));
DefaultEditorTemplatesTest.cs (7)
226
nameof(DefaultTemplatesUtilities.ObjectTemplateModel.
Property1
))
622
anotherModel => anotherModel.
Property1
,
707
anotherModel => anotherModel.
Property1
,
792
anotherModel => anotherModel.
Property1
,
1234
var result = helper.EditorFor(m => m.
Property1
);
1283
var result = helper.EditorFor(m => m.
Property1
);
1314
var ex = Assert.Throws<FormatException>(() => helper.EditorFor(m => m.
Property1
));
Rendering\HtmlHelperDisplayNameExtensionsTest.cs (4)
45
var displayNameForResult = helper.DisplayNameFor(m => m.
Property1
);
46
var displayNameForEnumerableResult = enumerableHelper.DisplayNameFor(m => m.
Property1
);
130
var displayNameForResult = helper.DisplayNameFor(m => m.
Property1
);
131
var displayNameForEnumerableResult = enumerableHelper.DisplayNameFor(m => m.
Property1
);
Rendering\HtmlHelperLabelExtensionsTest.cs (12)
84
var labelForResult = helper.LabelFor(m => m.
Property1
);
294
.GetExplorerForProperty(nameof(DefaultTemplatesUtilities.ObjectTemplateModel.
Property1
));
295
helper.ViewData.TemplateInfo.HtmlFieldPrefix = nameof(DefaultTemplatesUtilities.ObjectTemplateModel.
Property1
);
324
var labelResult = helper.Label(expression: nameof(DefaultTemplatesUtilities.ObjectTemplateModel.
Property1
));
325
var labelForResult = helper.LabelFor(m => m.
Property1
);
346
expression: nameof(DefaultTemplatesUtilities.ObjectTemplateModel.
Property1
),
348
var labelForResult = helper.LabelFor(m => m.
Property1
, labelText: "a label");
370
expression: nameof(DefaultTemplatesUtilities.ObjectTemplateModel.
Property1
),
372
var labelForResult = helper.LabelFor(m => m.
Property1
, labelText: string.Empty);
394
var labelForResult = helper.LabelFor(m => m.
Property1
);
470
var labelForResult = helper.LabelFor(m => m.
Property1
, labelText: "Hello");
496
var labelForResult = helper.LabelFor(m => m.
Property1
, htmlAttributes: new { attr = "value" });
Rendering\HtmlHelperNameExtensionsTest.cs (6)
102
var idForResult = helper.IdFor(m => m.
Property1
);
104
var nameForResult = helper.NameFor(m => m.
Property1
);
128
var idForResult = helper.IdFor(m => m.
Property1
);
130
var nameForResult = helper.NameFor(m => m.
Property1
);
203
var idForResult = helper.IdFor(m => m.
Property1
);
205
var nameForResult = helper.NameFor(m => m.
Property1
);
Rendering\HtmlHelperRadioButtonExtensionsTest.cs (2)
38
var radioButtonForResult = helper.RadioButtonFor(m => m.
Property1
, value: "myvalue");
152
var radioButtonForResult = helper.RadioButtonFor(m => m.
Property1
, "myvalue", htmlAttributes);
Rendering\HtmlHelperSelectTest.cs (4)
604
value => value.
Property1
,
628
value => value.
Property1
,
652
value => value.
Property1
,
677
value => value.
Property1
,
Rendering\HtmlHelperTextAreaExtensionsTest.cs (1)
136
var textAreaForResult = helper.TextAreaFor(m => m.
Property1
, rows: 1, columns: 2, htmlAttributes: new { attr = "value" });
Rendering\HtmlHelperValidationMessageExtensionsTest.cs (4)
35
var validationMessageForResult = helper.ValidationMessageFor(m => m.
Property1
);
65
var validationMessageForResult = helper.ValidationMessageFor(m => m.
Property1
, message: "Custom Message");
95
var validationMessageForResult = helper.ValidationMessageFor(m => m.
Property1
, message: "Custom Message", htmlAttributes: new { attr = "value" });
125
var validationMessageForResult = helper.ValidationMessageFor(m => m.
Property1
, message: "Custom Message", tag: "div");