29 references to CreateContext
Microsoft.AspNetCore.Mvc.Core.Test (29)
ModelBinding\Binders\ComplexObjectModelBinderTest.cs (29)
28var bindingContext = CreateContext(GetMetadataForType(typeof(Person)));
45var bindingContext = CreateContext(modelMetadata);
60var bindingContext = CreateContext(GetMetadataForType(typeof(Document)));
77var bindingContext = CreateContext(GetMetadataForType(typeof(HasAllGreedyProperties)));
101var bindingContext = CreateContext(modelMetadata);
121var bindingContext = CreateContext(GetMetadataForType(typeof(PersonWithNoProperties)));
137var bindingContext = CreateContext(GetMetadataForType(typeof(PersonWithNoProperties)));
161var bindingContext = CreateContext(GetMetadataForType(modelType));
189var bindingContext = CreateContext(GetMetadataForType(modelType));
224var bindingContext = CreateContext(GetMetadataForType(modelType));
258var bindingContext = CreateContext(GetMetadataForType(modelType));
438var bindingContext = CreateContext(GetMetadataForType(typeof(PersonWithName)), new PersonWithName());
603var bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
666var bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
703var bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
737var bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
760var bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
785var bindingContext = CreateContext(containerMetadata, model);
810var bindingContext = CreateContext(containerMetadata, model);
840var bindingContext = CreateContext(containerMetadata, model);
866var bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
888var bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
912var bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
936var bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
979var bindingContext = CreateContext(GetMetadataForType(type), model);
1005var bindingContext = CreateContext(modelMetadata, model);
1023var bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
1047var bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
1067var bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);