19 references to GetMetadataForProperty
Microsoft.AspNetCore.Mvc.Core.Test (19)
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (19)
42var modelMetadata = GetMetadataForProperty(typeof(Document), nameof(Document.SubDocument));
99var modelMetadata = GetMetadataForProperty(typeof(SimpleContainer), nameof(SimpleContainer.Simple));
480var propertyMetadata = GetMetadataForProperty(typeof(MyModelTestingCanUpdateProperty), propertyName);
574ModelMetadata = GetMetadataForProperty(typeof(Location), nameof(Location.Point)),
644var metadata = GetMetadataForProperty(typeof(PersonWithBindExclusion), property);
671var metadata = GetMetadataForProperty(typeof(PersonWithBindExclusion), property);
699var metadata = GetMetadataForProperty(typeof(PersonWithBindExclusion), property);
726var metadata = GetMetadataForProperty(typeof(TypeWithIncludedPropertiesUsingBindAttribute), property);
752var metadata = GetMetadataForProperty(typeof(ModelWithMixedBindingBehaviors), property);
782var property = GetMetadataForProperty(model.GetType(), nameof(ModelWithBindRequired.Age));
820var property = GetMetadataForProperty(model.GetType(), nameof(ModelWithDataMemberIsRequired.Age));
856var property = GetMetadataForProperty(model.GetType(), nameof(ModelWithBindRequired.Age));
885var property = GetMetadataForProperty(model.GetType(), nameof(BindingOptionalProperty.ValueTypeRequired));
905var property = GetMetadataForProperty(model.GetType(), nameof(NullableValueTypeProperty.NullableValueType));
927var property = GetMetadataForProperty(model.GetType(), nameof(Person.ValueTypeRequired));
949var property = GetMetadataForProperty(model.GetType(), nameof(Person.ValueTypeRequired));
1003var property = GetMetadataForProperty(model.GetType(), nameof(ModelWithPropertyInitializedInConstructor.NameContainer));
1004var nestedProperty = GetMetadataForProperty(typeof(ClassWithNoParameterlessConstructor), nameof(ClassWithNoParameterlessConstructor.Name));
1165var propertyMetadata = GetMetadataForProperty(model.GetType(), nameof(CollectionContainer.ReadOnlyList));