27 references to ForProperty
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (2)
DefaultApiDescriptionProviderTest.cs (2)
2078
.
ForProperty
<Person>(nameof(Person.Name))
2129
.
ForProperty
<Person>(nameof(Person.Name))
Microsoft.AspNetCore.Mvc.Core.Test (5)
ModelBinding\Binders\CollectionModelBinderTest.cs (1)
482
.
ForProperty
<ModelWithIListProperty>(nameof(ModelWithIListProperty.ListProperty))
ModelBinding\Binders\DictionaryModelBinderTest.cs (1)
670
.
ForProperty
<ModelWithIDictionaryProperty>(nameof(ModelWithIDictionaryProperty.DictionaryProperty))
ModelBinding\Binders\FormFileModelBinderTest.cs (1)
436
.
ForProperty
<ModelWithReadOnlyArray>(nameof(ModelWithReadOnlyArray.ArrayProperty))
ModelBinding\Binders\HeaderModelBinderTests.cs (1)
400
.
ForProperty
<ModelWithReadOnlyArray>(nameof(ModelWithReadOnlyArray.ArrayProperty))
ModelBinding\ModelBinderFactoryTest.cs (1)
104
.
ForProperty
<Widget>(nameof(Widget.Id))
Microsoft.AspNetCore.Mvc.IntegrationTests (2)
BodyValidationIntegrationTests.cs (1)
815
.
ForProperty
<Person6>(nameof(Person6.Address))
ServicesModelBinderIntegrationTest.cs (1)
352
.
ForProperty
<Person>(nameof(Person.Service));
Microsoft.AspNetCore.Mvc.TagHelpers.Test (5)
InputTagHelperTest.cs (4)
1279
metadataProvider.
ForProperty
<Model>("Text").DisplayDetails(dd => dd.DataTypeName = dataTypeName);
1445
metadataProvider.
ForProperty
<Model>("Text").DisplayDetails(dd => dd.DataTypeName = dataTypeName);
1657
metadataProvider.
ForProperty
<Model>("Text").DisplayDetails(dd => dd.DataTypeName = dataTypeName);
1772
metadataProvider.
ForProperty
<Model>("Text").DisplayDetails(dd => dd.DataTypeName = dataTypeName);
LabelTagHelperTest.cs (1)
286
.
ForProperty
<NestedModel>(name)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (13)
DefaultDisplayTemplatesTest.cs (1)
153
provider.
ForProperty
<DefaultTemplatesUtilities.ObjectTemplateModel>("Property1").DisplayDetails(dd =>
DefaultEditorTemplatesTest.cs (6)
225
.
ForProperty
<DefaultTemplatesUtilities.ObjectTemplateModel>(
385
provider.
ForProperty
<DefaultTemplatesUtilities.ObjectTemplateModel>("Property1").DisplayDetails(dd =>
646
provider.
ForProperty
<DefaultTemplatesUtilities.ObjectTemplateModel>("Property1").DisplayDetails(dd =>
689
provider.
ForProperty
<DefaultTemplatesUtilities.ObjectTemplateModel>("Property1").DisplayDetails(dd =>
731
provider.
ForProperty
<DefaultTemplatesUtilities.ObjectTemplateModel>("Property1").DisplayDetails(dd =>
774
provider.
ForProperty
<DefaultTemplatesUtilities.ObjectTemplateModel>("Property1").DisplayDetails(dd =>
Rendering\HtmlHelperDisplayNameExtensionsTest.cs (1)
122
.
ForProperty
<DefaultTemplatesUtilities.ObjectTemplateModel>("Property1")
Rendering\HtmlHelperLabelExtensionsTest.cs (5)
288
.
ForProperty
<DefaultTemplatesUtilities.ObjectTemplateModel>("Property1")
318
.
ForProperty
<DefaultTemplatesUtilities.ObjectTemplateModel>("Property1")
339
.
ForProperty
<DefaultTemplatesUtilities.ObjectTemplateModel>("Property1")
363
.
ForProperty
<DefaultTemplatesUtilities.ObjectTemplateModel>("Property1")
387
.
ForProperty
<DefaultTemplatesUtilities.ObjectTemplateModel>("Property1")