40 references to GetMetadataForType
Microsoft.AspNetCore.Mvc.Core.Test (40)
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (40)
27var bindingContext = CreateContext(GetMetadataForType(typeof(Person)));
59var bindingContext = CreateContext(GetMetadataForType(typeof(Document)));
76var bindingContext = CreateContext(GetMetadataForType(typeof(HasAllGreedyProperties)));
120var bindingContext = CreateContext(GetMetadataForType(typeof(PersonWithNoProperties)));
136var bindingContext = CreateContext(GetMetadataForType(typeof(PersonWithNoProperties)));
160var bindingContext = CreateContext(GetMetadataForType(modelType));
188var bindingContext = CreateContext(GetMetadataForType(modelType));
223var bindingContext = CreateContext(GetMetadataForType(modelType));
257var bindingContext = CreateContext(GetMetadataForType(modelType));
515ModelMetadata = GetMetadataForType(typeof(Person))
533ModelMetadata = GetMetadataForType(typeof(PointStruct)),
556var metadata = GetMetadataForType(typeof(ClassWithNoParameterlessConstructor));
595var bindingContext = CreateContext(GetMetadataForType(typeof(Person)), new Person());
618var bindingContext = CreateContext(GetMetadataForType(typeof(Person)), model: null);
654ModelMetadata = GetMetadataForType(typeof(PersonWithBindExclusion)),
681ModelMetadata = GetMetadataForType(typeof(PersonWithBindExclusion)),
706ModelMetadata = GetMetadataForType(typeof(PersonWithBindExclusion)),
733ModelMetadata = GetMetadataForType(typeof(TypeWithIncludedPropertiesUsingBindAttribute)),
759ModelMetadata = GetMetadataForType(typeof(ModelWithMixedBindingBehaviors)),
784var bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
816var bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
850var bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
881var bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
901var bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
921var containerMetadata = GetMetadataForType(model.GetType());
943var containerMetadata = GetMetadataForType(model.GetType());
970var containerMetadata = GetMetadataForType(model.GetType());
1028var bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
1030var metadata = GetMetadataForType(typeof(Person));
1050var bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
1052var metadata = GetMetadataForType(typeof(Person));
1074var bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
1076var metadata = GetMetadataForType(typeof(Person));
1098var bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
1100var metadata = GetMetadataForType(typeof(Person));
1141var bindingContext = CreateContext(GetMetadataForType(type), model);
1164var modelMetadata = GetMetadataForType(model.GetType());
1185var bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
1209var bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
1229var bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);