15 references to GetMetadataForProperty
Microsoft.AspNetCore.Mvc.Core.Test (15)
ModelBinding\Binders\ComplexObjectModelBinderTest.cs (15)
43var modelMetadata = GetMetadataForProperty(typeof(Document), nameof(Document.SubDocument));
100var modelMetadata = GetMetadataForProperty(typeof(SimpleContainer), nameof(SimpleContainer.Simple));
463var metadata = GetMetadataForProperty(typeof(PersonWithBindExclusion), property);
490var metadata = GetMetadataForProperty(typeof(PersonWithBindExclusion), property);
518var metadata = GetMetadataForProperty(typeof(PersonWithBindExclusion), property);
545var metadata = GetMetadataForProperty(typeof(TypeWithIncludedPropertiesUsingBindAttribute), property);
571var metadata = GetMetadataForProperty(typeof(ModelWithMixedBindingBehaviors), property);
601var property = GetMetadataForProperty(model.GetType(), nameof(ModelWithBindRequired.Age));
668var property = GetMetadataForProperty(model.GetType(), nameof(ModelWithDataMemberIsRequired.Age));
707var property = GetMetadataForProperty(model.GetType(), nameof(ModelWithBindRequired.Age));
739var property = GetMetadataForProperty(model.GetType(), nameof(BindingOptionalProperty.ValueTypeRequired));
762var property = GetMetadataForProperty(model.GetType(), nameof(NullableValueTypeProperty.NullableValueType));
787var property = GetMetadataForProperty(model.GetType(), nameof(Person.ValueTypeRequired));
812var property = GetMetadataForProperty(model.GetType(), nameof(Person.ValueTypeRequired));
1003var propertyMetadata = GetMetadataForProperty(model.GetType(), nameof(CollectionContainer.ReadOnlyList));