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