47 instantiations of DefaultModelBindingContext
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\DefaultModelBindingContext.cs (1)
213var bindingContext = new DefaultModelBindingContext()
Microsoft.AspNetCore.Mvc.Core.Test (45)
BindAttributeTest.cs (1)
25var context = new DefaultModelBindingContext();
ModelBinding\Binders\ArrayModelBinderTest.cs (1)
235var modelBindingContext = new DefaultModelBindingContext
ModelBinding\Binders\BinderTypeModelBinderTest.cs (1)
73var bindingContext = new DefaultModelBindingContext
ModelBinding\Binders\BodyModelBinderTests.cs (1)
689var bindingContext = new DefaultModelBindingContext
ModelBinding\Binders\ByteArrayModelBinderTests.cs (1)
106var bindingContext = new DefaultModelBindingContext
ModelBinding\Binders\CancellationTokenModelBinderTests.cs (1)
29DefaultModelBindingContext bindingContext = new DefaultModelBindingContext
ModelBinding\Binders\CollectionModelBinderTest.cs (1)
535var modelBindingContext = new DefaultModelBindingContext()
ModelBinding\Binders\ComplexObjectModelBinderTest.cs (9)
286var bindingContext = new DefaultModelBindingContext 338var bindingContext = new DefaultModelBindingContext 382var bindingContext = new DefaultModelBindingContext 464var bindingContext = new DefaultModelBindingContext() 491var bindingContext = new DefaultModelBindingContext() 519var bindingContext = new DefaultModelBindingContext() 546var bindingContext = new DefaultModelBindingContext() 572var bindingContext = new DefaultModelBindingContext() 1109return new DefaultModelBindingContext()
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (14)
299var bindingContext = new DefaultModelBindingContext 346var bindingContext = new DefaultModelBindingContext 398var bindingContext = new DefaultModelBindingContext 442var bindingContext = new DefaultModelBindingContext 513var bindingContext = new DefaultModelBindingContext 531var bindingContext = new DefaultModelBindingContext 557var bindingContext = new DefaultModelBindingContext 572var bindingContext = new DefaultModelBindingContext 645var bindingContext = new DefaultModelBindingContext() 672var bindingContext = new DefaultModelBindingContext() 700var bindingContext = new DefaultModelBindingContext() 727var bindingContext = new DefaultModelBindingContext() 753var bindingContext = new DefaultModelBindingContext() 1273return new DefaultModelBindingContext()
ModelBinding\Binders\DateTimeModelBinderTest.cs (1)
210return new DefaultModelBindingContext
ModelBinding\Binders\DictionaryModelBinderTest.cs (1)
626var modelBindingContext = new DefaultModelBindingContext()
ModelBinding\Binders\EnumTypeModelBinderTest.cs (1)
241var bindingContext = new DefaultModelBindingContext
ModelBinding\Binders\FloatingPointTypeModelBinderTestOfT.cs (1)
371return new DefaultModelBindingContext
ModelBinding\Binders\FormCollectionModelBinderTest.cs (1)
69var bindingContext = new DefaultModelBindingContext
ModelBinding\Binders\FormFileModelBinderTest.cs (1)
457var bindingContext = new DefaultModelBindingContext
ModelBinding\Binders\HeaderModelBinderTests.cs (1)
348return new DefaultModelBindingContext()
ModelBinding\Binders\KeyValuePairModelBinderTest.cs (2)
201var modelBindingContext = new DefaultModelBindingContext() 218var bindingContext = new DefaultModelBindingContext
ModelBinding\Binders\ServicesModelBinderTest.cs (1)
42var bindingContext = new DefaultModelBindingContext
ModelBinding\Binders\SimpleTypeModelBinderTest.cs (1)
488return new DefaultModelBindingContext
ModelBinding\Binders\TryParseTypeModelBinderTest.cs (1)
493return new DefaultModelBindingContext
ModelBinding\DefaultModelBindingContextTest.cs (2)
20var bindingContext = new DefaultModelBindingContext 146var bindingContext = new DefaultModelBindingContext
ModelBinding\ModelBindingHelperTest.cs (1)
1531var bindingContext = new DefaultModelBindingContext
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (1)
ModelMetadataProviderTest.cs (1)
24var context = new DefaultModelBindingContext();
321 references to DefaultModelBindingContext
Microsoft.AspNetCore.Mvc.Core (6)
ModelBinding\DefaultModelBindingContext.cs (3)
187/// Creates a new <see cref="DefaultModelBindingContext"/> for top-level model binding operation. 196/// <returns>A new instance of <see cref="DefaultModelBindingContext"/>.</returns> 213var bindingContext = new DefaultModelBindingContext()
ModelBinding\ModelBindingHelper.cs (1)
241var modelBindingContext = DefaultModelBindingContext.CreateBindingContext(
ModelBinding\ParameterBinder.cs (1)
107var modelBindingContext = DefaultModelBindingContext.CreateBindingContext(
MvcOptions.cs (1)
326/// <see cref="DefaultModelBindingContext"/> will throw an <see cref="InvalidOperationException"/> if more than
Microsoft.AspNetCore.Mvc.Core.Test (314)
BindAttributeTest.cs (1)
25var context = new DefaultModelBindingContext();
Controllers\ControllerBinderDelegateProviderTest.cs (11)
47.Setup(b => b.BindModelAsync(It.IsAny<DefaultModelBindingContext>())) 76It.IsAny<DefaultModelBindingContext>()), 101.Setup(b => b.BindModelAsync(It.IsAny<DefaultModelBindingContext>())) 131It.IsAny<DefaultModelBindingContext>()), 154.Setup(b => b.BindModelAsync(It.IsAny<DefaultModelBindingContext>())) 196.Setup(b => b.BindModelAsync(It.IsAny<DefaultModelBindingContext>())) 241.Setup(b => b.BindModelAsync(It.IsAny<DefaultModelBindingContext>())) 440.Setup(b => b.BindModelAsync(It.IsAny<DefaultModelBindingContext>())) 583.Setup(b => b.BindModelAsync(It.IsAny<DefaultModelBindingContext>())) 1305.Setup(b => b.BindModelAsync(It.IsAny<DefaultModelBindingContext>())) 1306.Returns<DefaultModelBindingContext>(mbc =>
ModelBinding\Binders\ArrayModelBinderTest.cs (9)
22var bindingContext = GetBindingContext(valueProvider); 60var bindingContext = CreateContext(); 95var bindingContext = CreateContext(); 144var bindingContext = CreateContext(); 191var bindingContext = GetBindingContext(valueProvider); 220private static DefaultModelBindingContext GetBindingContext(IValueProvider valueProvider) 222var bindingContext = CreateContext(); 229private static DefaultModelBindingContext CreateContext() 235var modelBindingContext = new DefaultModelBindingContext
ModelBinding\Binders\BinderTypeModelBinderTest.cs (5)
17var bindingContext = GetBindingContext(typeof(Person), binderType: typeof(NullModelBinder)); 32var bindingContext = GetBindingContext(typeof(Person), binderType: typeof(NotNullModelBinder)); 56var bindingContext = GetBindingContext(typeof(Person), binderType: typeof(Person)); 68private static DefaultModelBindingContext GetBindingContext(Type modelType, Type binderType = null) 73var bindingContext = new DefaultModelBindingContext
ModelBinding\Binders\BodyModelBinderTests.cs (23)
36var bindingContext = GetBindingContext( 58var bindingContext = GetBindingContext(typeof(Person), metadataProvider: provider); 82var bindingContext = GetBindingContext(typeof(Person), metadataProvider: provider); 107var bindingContext = GetBindingContext(typeof(Person), metadataProvider: provider); 137var bindingContext = GetBindingContext( 175var bindingContext = GetBindingContext( 203var bindingContext = GetBindingContext( 231var bindingContext = GetBindingContext( 260var bindingContext = GetBindingContext(typeof(Person), httpContext, metadataProvider); 307var bindingContext = GetBindingContext(typeof(Person), httpContext, metadataProvider); 336var bindingContext = GetBindingContext(typeof(Person), httpContext, metadataProvider); 378var bindingContext = GetBindingContext(typeof(Person), httpContext, metadataProvider); 407var bindingContext = GetBindingContext(typeof(Person), httpContext, metadataProvider); 454var bindingContext = GetBindingContext(typeof(Person), httpContext, metadataProvider); 489var bindingContext = GetBindingContext(typeof(Person), httpContext, metadataProvider); 518var bindingContext = GetBindingContext(typeof(Person), httpContext, metadataProvider); 541var bindingContext = GetBindingContext( 578var bindingContext = GetBindingContext(typeof(Person), metadataProvider: provider); 603var bindingContext = GetBindingContext(typeof(Person), metadataProvider: provider); 632var bindingContext = GetBindingContext(typeof(Person), metadataProvider: provider); 664var bindingContext = GetBindingContext( 674private static DefaultModelBindingContext GetBindingContext( 689var bindingContext = new DefaultModelBindingContext
ModelBinding\Binders\ByteArrayModelBinderTests.cs (6)
21var bindingContext = GetBindingContext(valueProvider, typeof(byte[])); 45var bindingContext = GetBindingContext(valueProvider, typeof(byte[])); 68var bindingContext = GetBindingContext(valueProvider, typeof(byte[])); 90var bindingContext = GetBindingContext(valueProvider, typeof(byte[])); 103private static DefaultModelBindingContext GetBindingContext(IValueProvider valueProvider, Type modelType) 106var bindingContext = new DefaultModelBindingContext
ModelBinding\Binders\CancellationTokenModelBinderTests.cs (3)
15var bindingContext = GetBindingContext(typeof(CancellationToken)); 26private static DefaultModelBindingContext GetBindingContext(Type modelType) 29DefaultModelBindingContext bindingContext = new DefaultModelBindingContext
ModelBinding\Binders\CollectionModelBinderTest.cs (19)
24var bindingContext = GetModelBindingContext(valueProvider); 50var bindingContext = GetModelBindingContext(valueProvider); 76var bindingContext = GetModelBindingContext(valueProvider, isReadOnly); 105var bindingContext = GetModelBindingContext(valueProvider, isReadOnly); 133var bindingContext = GetModelBindingContext(valueProvider, isReadOnly); 157var bindingContext = GetModelBindingContext(valueProvider, isReadOnly); 182var bindingContext = GetModelBindingContext(valueProvider, isReadOnly: false); 199var context = GetModelBindingContext(new SimpleValueProvider()); 218var context = GetModelBindingContext(valueProvider); 246var bindingContext = CreateContext(); 281var bindingContext = CreateContext(); 321var bindingContext = CreateContext(); 357var bindingContext = CreateContext(); 400var bindingContext = CreateContext(); 457var bindingContext = GetModelBindingContext(new SimpleValueProvider()); 476private static DefaultModelBindingContext GetModelBindingContext( 488var bindingContext = CreateContext(); 529private static DefaultModelBindingContext CreateContext() 535var modelBindingContext = new DefaultModelBindingContext()
ModelBinding\Binders\ComplexObjectModelBinderTest.cs (38)
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)); 286var bindingContext = new DefaultModelBindingContext 338var bindingContext = new DefaultModelBindingContext 382var bindingContext = new DefaultModelBindingContext 438var bindingContext = CreateContext(GetMetadataForType(typeof(PersonWithName)), new PersonWithName()); 464var bindingContext = new DefaultModelBindingContext() 491var bindingContext = new DefaultModelBindingContext() 519var bindingContext = new DefaultModelBindingContext() 546var bindingContext = new DefaultModelBindingContext() 572var bindingContext = new DefaultModelBindingContext() 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); 1106private static DefaultModelBindingContext CreateContext(ModelMetadata metadata, object model = null)
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (45)
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)); 299var bindingContext = new DefaultModelBindingContext 346var bindingContext = new DefaultModelBindingContext 398var bindingContext = new DefaultModelBindingContext 442var bindingContext = new DefaultModelBindingContext 513var bindingContext = new DefaultModelBindingContext 531var bindingContext = new DefaultModelBindingContext 557var bindingContext = new DefaultModelBindingContext 572var bindingContext = new DefaultModelBindingContext 595var bindingContext = CreateContext(GetMetadataForType(typeof(Person)), new Person()); 618var bindingContext = CreateContext(GetMetadataForType(typeof(Person)), model: null); 645var bindingContext = new DefaultModelBindingContext() 672var bindingContext = new DefaultModelBindingContext() 700var bindingContext = new DefaultModelBindingContext() 727var bindingContext = new DefaultModelBindingContext() 753var bindingContext = new DefaultModelBindingContext() 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); 1270private static DefaultModelBindingContext CreateContext(ModelMetadata metadata, object model = null)
ModelBinding\Binders\DateTimeModelBinderTest.cs (10)
15var bindingContext = GetBindingContext(); 34var bindingContext = GetBindingContext(); 57var bindingContext = GetBindingContext(); 80var bindingContext = GetBindingContext(typeof(DateTime)); 95var bindingContext = GetBindingContext(typeof(DateTime?)); 113var bindingContext = GetBindingContext(); 138var bindingContext = GetBindingContext(typeof(DateTime?)); 161var bindingContext = GetBindingContext(type); 183var bindingContext = GetBindingContext(); 207private static DefaultModelBindingContext GetBindingContext(Type modelType = null)
ModelBinding\Binders\DictionaryModelBinderTest.cs (17)
31var bindingContext = GetModelBindingContext(isReadOnly, values); 69var bindingContext = GetModelBindingContext(isReadOnly, values); 137var bindingContext = CreateContext(); 170var bindingContext = CreateContext(); 208var bindingContext = CreateContext(); 245var bindingContext = CreateContext(); 295var bindingContext = CreateContext(); 332var bindingContext = CreateContext(); 391var bindingContext = CreateContext(); 431var bindingContext = CreateContext(); 467var bindingContext = CreateContext(); 515var bindingContext = CreateContext(); 562var bindingContext = CreateContext(); 620private static DefaultModelBindingContext CreateContext() 626var modelBindingContext = new DefaultModelBindingContext() 664private static DefaultModelBindingContext GetModelBindingContext( 682var bindingContext = CreateContext();
ModelBinding\Binders\EnumTypeModelBinderTest.cs (2)
235private static (DefaultModelBindingContext, IModelBinder) GetBinderAndContext( 241var bindingContext = new DefaultModelBindingContext
ModelBinding\Binders\FloatingPointTypeModelBinderTestOfT.cs (16)
36var bindingContext = GetBindingContext(destinationType); 56var bindingContext = GetBindingContext(destinationType); 80var bindingContext = GetBindingContext(destinationType); 104var bindingContext = GetBindingContext(destinationType); 128var bindingContext = GetBindingContext(destinationType); 152var bindingContext = GetBindingContext(destinationType); 176var bindingContext = GetBindingContext(destinationType); 194var bindingContext = GetBindingContext(typeof(TFloatingPoint)); 219var bindingContext = GetBindingContext(typeof(TFloatingPoint?)); 240var bindingContext = GetBindingContext(destinationType); 262var bindingContext = GetBindingContext(destinationType); 283var bindingContext = GetBindingContext(destinationType); 304var bindingContext = GetBindingContext(destinationType); 325var bindingContext = GetBindingContext(destinationType); 346var bindingContext = GetBindingContext(destinationType); 369private static DefaultModelBindingContext GetBindingContext(Type modelType)
ModelBinding\Binders\FormCollectionModelBinderTest.cs (4)
24var bindingContext = GetBindingContext(typeof(IFormCollection), httpContext); 45var bindingContext = GetBindingContext(typeof(IFormCollection), httpContext); 66private static DefaultModelBindingContext GetBindingContext(Type modelType, HttpContext httpContext) 69var bindingContext = new DefaultModelBindingContext
ModelBinding\Binders\FormFileModelBinderTest.cs (20)
22var bindingContext = GetBindingContext(typeof(IEnumerable<IFormFile>), httpContext); 51var bindingContext = DefaultModelBindingContext.CreateBindingContext( 89var bindingContext = DefaultModelBindingContext.CreateBindingContext( 131var bindingContext = DefaultModelBindingContext.CreateBindingContext( 166var bindingContext = DefaultModelBindingContext.CreateBindingContext( 202var bindingContext = DefaultModelBindingContext.CreateBindingContext( 229var bindingContext = GetBindingContext(typeof(IEnumerable<IFormFile>), httpContext); 262var bindingContext = GetBindingContext(destinationType, httpContext); 279var bindingContext = GetBindingContext(typeof(IFormFile), httpContext); 297var bindingContext = GetBindingContext(typeof(IFormFile), httpContext); 317var bindingContext = GetBindingContext(typeof(IFormFile), httpContext); 341var bindingContext = GetBindingContext(typeof(IFormFile), httpContext); 367var bindingContext = GetBindingContext(typeof(IFormFile), httpContext); 387var bindingContext = GetBindingContext(typeof(IFormFile), httpContext); 405var bindingContext = GetBindingContextForReadOnlyArray(httpContext); 422var bindingContext = GetBindingContext(typeof(ISet<IFormFile>), httpContext); 432private static DefaultModelBindingContext GetBindingContextForReadOnlyArray(HttpContext httpContext) 445private static DefaultModelBindingContext GetBindingContext(Type modelType, HttpContext httpContext) 453private static DefaultModelBindingContext GetBindingContext( 457var bindingContext = new DefaultModelBindingContext
ModelBinding\Binders\HeaderModelBinderTests.cs (16)
25var bindingContext = CreateContext(type); 45var bindingContext = CreateContext(type); 74var bindingContext = CreateContext(destinationType); 94var bindingContext = CreateContext(type); 141var bindingContext = CreateContext(modelType); 163var bindingContext = CreateContext(modelType); 180var bindingContext = CreateContext(modelType); 204var bindingContext = CreateContext(destinationType); 221var bindingContext = CreateContext(GetMetadataForReadOnlyArray()); 238var bindingContext = CreateContext(GetMetadataForType(typeof(string)), expectedValueProvider); 262var bindingContext = CreateContext(GetMetadataForType(typeof(string)), testValueProvider.Object); 284var bindingContext = CreateContext(modelType); 308var bindingContext = CreateContext(modelType); 323private static DefaultModelBindingContext CreateContext(Type modelType) 328private static DefaultModelBindingContext CreateContext( 372private static IModelBinder CreateBinder(DefaultModelBindingContext bindingContext)
ModelBinding\Binders\KeyValuePairModelBinderTest.cs (11)
18var bindingContext = GetBindingContext(valueProvider, typeof(KeyValuePair<int, string>)); 43var bindingContext = GetBindingContext(valueProvider, typeof(KeyValuePair<int, string>)); 69var bindingContext = GetBindingContext(valueProvider, typeof(KeyValuePair<int, string>)); 90var bindingContext = GetBindingContext(valueProvider, typeof(KeyValuePair<int, string>)); 131var bindingContext = GetBindingContext(valueProvider, typeof(KeyValuePair<int, string>)); 151var bindingContext = CreateContext(); 182var bindingContext = CreateContext(); 199private static DefaultModelBindingContext CreateContext() 201var modelBindingContext = new DefaultModelBindingContext() 213private static DefaultModelBindingContext GetBindingContext( 218var bindingContext = new DefaultModelBindingContext
ModelBinding\Binders\ServicesModelBinderTest.cs (3)
19var bindingContext = GetBindingContext(type); 33private static DefaultModelBindingContext GetBindingContext(Type modelType) 42var bindingContext = new DefaultModelBindingContext
ModelBinding\Binders\SimpleTypeModelBinderTest.cs (18)
21var bindingContext = GetBindingContext(typeof(string)); 43var bindingContext = GetBindingContext(typeof(string)); 95var bindingContext = GetBindingContext(destinationType); 115var bindingContext = GetBindingContext(destinationType); 139var bindingContext = GetBindingContext(typeof(int)); 180var bindingContext = GetBindingContext(typeof(int)); 202var bindingContext = GetBindingContext(typeof(string)); 222var bindingContext = GetBindingContext(typeof(int?)); 243var bindingContext = GetBindingContext(typeof(double?)); 265var bindingContext = GetBindingContext(typeof(int)); 311var bindingContext = GetBindingContext(type); 339var bindingContext = GetBindingContext(typeof(decimal)); 360var bindingContext = GetBindingContext(typeof(decimal)); 384var bindingContext = GetBindingContext(typeof(IntEnum)); 405var bindingContext = GetBindingContext(typeof(IntEnum)); 446var bindingContext = GetBindingContext(typeof(IntEnum)); 469var bindingContext = GetBindingContext(typeof(FlagsEnum)); 486private static DefaultModelBindingContext GetBindingContext(Type modelType)
ModelBinding\Binders\TryParseTypeModelBinderTest.cs (18)
44var bindingContext = GetBindingContext(destinationType); 64var bindingContext = GetBindingContext(destinationType); 88var bindingContext = GetBindingContext(typeof(int)); 129var bindingContext = GetBindingContext(typeof(int)); 149var bindingContext = GetBindingContext(typeof(int?)); 170var bindingContext = GetBindingContext(typeof(double?)); 192var bindingContext = GetBindingContext(typeof(int)); 237var bindingContext = GetBindingContext(type); 265var bindingContext = GetBindingContext(typeof(decimal)); 286var bindingContext = GetBindingContext(typeof(decimal)); 310var bindingContext = GetBindingContext(typeof(IntEnum)); 331var bindingContext = GetBindingContext(typeof(IntEnum)); 368var bindingContext = GetBindingContext(typeof(IntEnum)); 391var bindingContext = GetBindingContext(typeof(FlagsEnum)); 418var bindingContext = GetBindingContext(typeof(TestTryParseClass)); 441var bindingContext = GetBindingContext(typeof(TestTryParseClass)); 467var bindingContext = GetBindingContext(typeof(FlagsEnum)); 491private static DefaultModelBindingContext GetBindingContext(Type modelType)
ModelBinding\DefaultModelBindingContextTest.cs (5)
20var bindingContext = new DefaultModelBindingContext 72var context = DefaultModelBindingContext.CreateBindingContext( 95var context = DefaultModelBindingContext.CreateBindingContext( 124var context = DefaultModelBindingContext.CreateBindingContext( 146var bindingContext = new DefaultModelBindingContext
ModelBinding\ModelBindingHelperTest.cs (14)
1346var bindingContext = GetBindingContext(destinationType); 1367var bindingContext = GetBindingContext(destinationType); 1383var bindingContext = GetBindingContext(destinationType); 1396var bindingContext = GetBindingContext(typeof(IList<int>)); 1417var bindingContext = GetBindingContextForProperty(propertyName); 1433var bindingContext = GetBindingContextForProperty(propertyName); 1448var bindingContext = GetBindingContextForProperty(propertyName); 1463var bindingContext = GetBindingContextForProperty( 1484var bindingContext = GetBindingContext(destinationType); 1507private static DefaultModelBindingContext GetBindingContextForProperty(string propertyName) 1513var bindingContext = GetBindingContext(modelMetadata); 1521private static DefaultModelBindingContext GetBindingContext(Type modelType) 1529private static DefaultModelBindingContext GetBindingContext(ModelMetadata metadata) 1531var bindingContext = new DefaultModelBindingContext
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (1)
ModelMetadataProviderTest.cs (1)
24var context = new DefaultModelBindingContext();