31 references to CreateContext
Microsoft.AspNetCore.Mvc.Core.Test (31)
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (31)
27var bindingContext = CreateContext(GetMetadataForType(typeof(Person)));
44var bindingContext = CreateContext(modelMetadata);
59var bindingContext = CreateContext(GetMetadataForType(typeof(Document)));
76var bindingContext = CreateContext(GetMetadataForType(typeof(HasAllGreedyProperties)));
100var bindingContext = CreateContext(modelMetadata);
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));
595var bindingContext = CreateContext(GetMetadataForType(typeof(Person)), new Person());
618var bindingContext = CreateContext(GetMetadataForType(typeof(Person)), model: null);
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);
923var bindingContext = CreateContext(containerMetadata, model);
945var bindingContext = CreateContext(containerMetadata, model);
972var bindingContext = CreateContext(containerMetadata, model);
1005var bindingContext = CreateContext(property);
1028var bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
1050var bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
1074var bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
1098var bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
1141var bindingContext = CreateContext(GetMetadataForType(type), model);
1167var bindingContext = CreateContext(modelMetadata, model);
1185var bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
1209var bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
1229var bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);