47 instantiations of DefaultModelBindingContext
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\DefaultModelBindingContext.cs (1)
213
var bindingContext = new
DefaultModelBindingContext
()
Microsoft.AspNetCore.Mvc.Core.Test (45)
BindAttributeTest.cs (1)
25
var context = new
DefaultModelBindingContext
();
ModelBinding\Binders\ArrayModelBinderTest.cs (1)
235
var modelBindingContext = new
DefaultModelBindingContext
ModelBinding\Binders\BinderTypeModelBinderTest.cs (1)
73
var bindingContext = new
DefaultModelBindingContext
ModelBinding\Binders\BodyModelBinderTests.cs (1)
689
var bindingContext = new
DefaultModelBindingContext
ModelBinding\Binders\ByteArrayModelBinderTests.cs (1)
106
var bindingContext = new
DefaultModelBindingContext
ModelBinding\Binders\CancellationTokenModelBinderTests.cs (1)
29
DefaultModelBindingContext bindingContext = new
DefaultModelBindingContext
ModelBinding\Binders\CollectionModelBinderTest.cs (1)
535
var modelBindingContext = new
DefaultModelBindingContext
()
ModelBinding\Binders\ComplexObjectModelBinderTest.cs (9)
286
var bindingContext = new
DefaultModelBindingContext
338
var bindingContext = new
DefaultModelBindingContext
382
var bindingContext = new
DefaultModelBindingContext
464
var bindingContext = new
DefaultModelBindingContext
()
491
var bindingContext = new
DefaultModelBindingContext
()
519
var bindingContext = new
DefaultModelBindingContext
()
546
var bindingContext = new
DefaultModelBindingContext
()
572
var bindingContext = new
DefaultModelBindingContext
()
1109
return new
DefaultModelBindingContext
()
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (14)
299
var bindingContext = new
DefaultModelBindingContext
346
var bindingContext = new
DefaultModelBindingContext
398
var bindingContext = new
DefaultModelBindingContext
442
var bindingContext = new
DefaultModelBindingContext
513
var bindingContext = new
DefaultModelBindingContext
531
var bindingContext = new
DefaultModelBindingContext
557
var bindingContext = new
DefaultModelBindingContext
572
var bindingContext = new
DefaultModelBindingContext
645
var bindingContext = new
DefaultModelBindingContext
()
672
var bindingContext = new
DefaultModelBindingContext
()
700
var bindingContext = new
DefaultModelBindingContext
()
727
var bindingContext = new
DefaultModelBindingContext
()
753
var bindingContext = new
DefaultModelBindingContext
()
1273
return new
DefaultModelBindingContext
()
ModelBinding\Binders\DateTimeModelBinderTest.cs (1)
210
return new
DefaultModelBindingContext
ModelBinding\Binders\DictionaryModelBinderTest.cs (1)
626
var modelBindingContext = new
DefaultModelBindingContext
()
ModelBinding\Binders\EnumTypeModelBinderTest.cs (1)
241
var bindingContext = new
DefaultModelBindingContext
ModelBinding\Binders\FloatingPointTypeModelBinderTestOfT.cs (1)
371
return new
DefaultModelBindingContext
ModelBinding\Binders\FormCollectionModelBinderTest.cs (1)
69
var bindingContext = new
DefaultModelBindingContext
ModelBinding\Binders\FormFileModelBinderTest.cs (1)
457
var bindingContext = new
DefaultModelBindingContext
ModelBinding\Binders\HeaderModelBinderTests.cs (1)
348
return new
DefaultModelBindingContext
()
ModelBinding\Binders\KeyValuePairModelBinderTest.cs (2)
201
var modelBindingContext = new
DefaultModelBindingContext
()
218
var bindingContext = new
DefaultModelBindingContext
ModelBinding\Binders\ServicesModelBinderTest.cs (1)
42
var bindingContext = new
DefaultModelBindingContext
ModelBinding\Binders\SimpleTypeModelBinderTest.cs (1)
488
return new
DefaultModelBindingContext
ModelBinding\Binders\TryParseTypeModelBinderTest.cs (1)
493
return new
DefaultModelBindingContext
ModelBinding\DefaultModelBindingContextTest.cs (2)
20
var bindingContext = new
DefaultModelBindingContext
146
var bindingContext = new
DefaultModelBindingContext
ModelBinding\ModelBindingHelperTest.cs (1)
1531
var bindingContext = new
DefaultModelBindingContext
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (1)
ModelMetadataProviderTest.cs (1)
24
var 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>
213
var
bindingContext = new DefaultModelBindingContext()
ModelBinding\ModelBindingHelper.cs (1)
241
var modelBindingContext =
DefaultModelBindingContext
.CreateBindingContext(
ModelBinding\ParameterBinder.cs (1)
107
var 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)
25
var
context = new DefaultModelBindingContext();
Controllers\ControllerBinderDelegateProviderTest.cs (11)
47
.Setup(b => b.BindModelAsync(It.IsAny<
DefaultModelBindingContext
>()))
76
It.IsAny<
DefaultModelBindingContext
>()),
101
.Setup(b => b.BindModelAsync(It.IsAny<
DefaultModelBindingContext
>()))
131
It.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)
22
var
bindingContext = GetBindingContext(valueProvider);
60
var
bindingContext = CreateContext();
95
var
bindingContext = CreateContext();
144
var
bindingContext = CreateContext();
191
var
bindingContext = GetBindingContext(valueProvider);
220
private static
DefaultModelBindingContext
GetBindingContext(IValueProvider valueProvider)
222
var
bindingContext = CreateContext();
229
private static
DefaultModelBindingContext
CreateContext()
235
var
modelBindingContext = new DefaultModelBindingContext
ModelBinding\Binders\BinderTypeModelBinderTest.cs (5)
17
var
bindingContext = GetBindingContext(typeof(Person), binderType: typeof(NullModelBinder));
32
var
bindingContext = GetBindingContext(typeof(Person), binderType: typeof(NotNullModelBinder));
56
var
bindingContext = GetBindingContext(typeof(Person), binderType: typeof(Person));
68
private static
DefaultModelBindingContext
GetBindingContext(Type modelType, Type binderType = null)
73
var
bindingContext = new DefaultModelBindingContext
ModelBinding\Binders\BodyModelBinderTests.cs (23)
36
var
bindingContext = GetBindingContext(
58
var
bindingContext = GetBindingContext(typeof(Person), metadataProvider: provider);
82
var
bindingContext = GetBindingContext(typeof(Person), metadataProvider: provider);
107
var
bindingContext = GetBindingContext(typeof(Person), metadataProvider: provider);
137
var
bindingContext = GetBindingContext(
175
var
bindingContext = GetBindingContext(
203
var
bindingContext = GetBindingContext(
231
var
bindingContext = GetBindingContext(
260
var
bindingContext = GetBindingContext(typeof(Person), httpContext, metadataProvider);
307
var
bindingContext = GetBindingContext(typeof(Person), httpContext, metadataProvider);
336
var
bindingContext = GetBindingContext(typeof(Person), httpContext, metadataProvider);
378
var
bindingContext = GetBindingContext(typeof(Person), httpContext, metadataProvider);
407
var
bindingContext = GetBindingContext(typeof(Person), httpContext, metadataProvider);
454
var
bindingContext = GetBindingContext(typeof(Person), httpContext, metadataProvider);
489
var
bindingContext = GetBindingContext(typeof(Person), httpContext, metadataProvider);
518
var
bindingContext = GetBindingContext(typeof(Person), httpContext, metadataProvider);
541
var
bindingContext = GetBindingContext(
578
var
bindingContext = GetBindingContext(typeof(Person), metadataProvider: provider);
603
var
bindingContext = GetBindingContext(typeof(Person), metadataProvider: provider);
632
var
bindingContext = GetBindingContext(typeof(Person), metadataProvider: provider);
664
var
bindingContext = GetBindingContext(
674
private static
DefaultModelBindingContext
GetBindingContext(
689
var
bindingContext = new DefaultModelBindingContext
ModelBinding\Binders\ByteArrayModelBinderTests.cs (6)
21
var
bindingContext = GetBindingContext(valueProvider, typeof(byte[]));
45
var
bindingContext = GetBindingContext(valueProvider, typeof(byte[]));
68
var
bindingContext = GetBindingContext(valueProvider, typeof(byte[]));
90
var
bindingContext = GetBindingContext(valueProvider, typeof(byte[]));
103
private static
DefaultModelBindingContext
GetBindingContext(IValueProvider valueProvider, Type modelType)
106
var
bindingContext = new DefaultModelBindingContext
ModelBinding\Binders\CancellationTokenModelBinderTests.cs (3)
15
var
bindingContext = GetBindingContext(typeof(CancellationToken));
26
private static
DefaultModelBindingContext
GetBindingContext(Type modelType)
29
DefaultModelBindingContext
bindingContext = new DefaultModelBindingContext
ModelBinding\Binders\CollectionModelBinderTest.cs (19)
24
var
bindingContext = GetModelBindingContext(valueProvider);
50
var
bindingContext = GetModelBindingContext(valueProvider);
76
var
bindingContext = GetModelBindingContext(valueProvider, isReadOnly);
105
var
bindingContext = GetModelBindingContext(valueProvider, isReadOnly);
133
var
bindingContext = GetModelBindingContext(valueProvider, isReadOnly);
157
var
bindingContext = GetModelBindingContext(valueProvider, isReadOnly);
182
var
bindingContext = GetModelBindingContext(valueProvider, isReadOnly: false);
199
var
context = GetModelBindingContext(new SimpleValueProvider());
218
var
context = GetModelBindingContext(valueProvider);
246
var
bindingContext = CreateContext();
281
var
bindingContext = CreateContext();
321
var
bindingContext = CreateContext();
357
var
bindingContext = CreateContext();
400
var
bindingContext = CreateContext();
457
var
bindingContext = GetModelBindingContext(new SimpleValueProvider());
476
private static
DefaultModelBindingContext
GetModelBindingContext(
488
var
bindingContext = CreateContext();
529
private static
DefaultModelBindingContext
CreateContext()
535
var
modelBindingContext = new DefaultModelBindingContext()
ModelBinding\Binders\ComplexObjectModelBinderTest.cs (38)
28
var
bindingContext = CreateContext(GetMetadataForType(typeof(Person)));
45
var
bindingContext = CreateContext(modelMetadata);
60
var
bindingContext = CreateContext(GetMetadataForType(typeof(Document)));
77
var
bindingContext = CreateContext(GetMetadataForType(typeof(HasAllGreedyProperties)));
101
var
bindingContext = CreateContext(modelMetadata);
121
var
bindingContext = CreateContext(GetMetadataForType(typeof(PersonWithNoProperties)));
137
var
bindingContext = CreateContext(GetMetadataForType(typeof(PersonWithNoProperties)));
161
var
bindingContext = CreateContext(GetMetadataForType(modelType));
189
var
bindingContext = CreateContext(GetMetadataForType(modelType));
224
var
bindingContext = CreateContext(GetMetadataForType(modelType));
258
var
bindingContext = CreateContext(GetMetadataForType(modelType));
286
var
bindingContext = new DefaultModelBindingContext
338
var
bindingContext = new DefaultModelBindingContext
382
var
bindingContext = new DefaultModelBindingContext
438
var
bindingContext = CreateContext(GetMetadataForType(typeof(PersonWithName)), new PersonWithName());
464
var
bindingContext = new DefaultModelBindingContext()
491
var
bindingContext = new DefaultModelBindingContext()
519
var
bindingContext = new DefaultModelBindingContext()
546
var
bindingContext = new DefaultModelBindingContext()
572
var
bindingContext = new DefaultModelBindingContext()
603
var
bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
666
var
bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
703
var
bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
737
var
bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
760
var
bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
785
var
bindingContext = CreateContext(containerMetadata, model);
810
var
bindingContext = CreateContext(containerMetadata, model);
840
var
bindingContext = CreateContext(containerMetadata, model);
866
var
bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
888
var
bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
912
var
bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
936
var
bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
979
var
bindingContext = CreateContext(GetMetadataForType(type), model);
1005
var
bindingContext = CreateContext(modelMetadata, model);
1023
var
bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
1047
var
bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
1067
var
bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
1106
private static
DefaultModelBindingContext
CreateContext(ModelMetadata metadata, object model = null)
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (45)
27
var
bindingContext = CreateContext(GetMetadataForType(typeof(Person)));
44
var
bindingContext = CreateContext(modelMetadata);
59
var
bindingContext = CreateContext(GetMetadataForType(typeof(Document)));
76
var
bindingContext = CreateContext(GetMetadataForType(typeof(HasAllGreedyProperties)));
100
var
bindingContext = CreateContext(modelMetadata);
120
var
bindingContext = CreateContext(GetMetadataForType(typeof(PersonWithNoProperties)));
136
var
bindingContext = CreateContext(GetMetadataForType(typeof(PersonWithNoProperties)));
160
var
bindingContext = CreateContext(GetMetadataForType(modelType));
188
var
bindingContext = CreateContext(GetMetadataForType(modelType));
223
var
bindingContext = CreateContext(GetMetadataForType(modelType));
257
var
bindingContext = CreateContext(GetMetadataForType(modelType));
299
var
bindingContext = new DefaultModelBindingContext
346
var
bindingContext = new DefaultModelBindingContext
398
var
bindingContext = new DefaultModelBindingContext
442
var
bindingContext = new DefaultModelBindingContext
513
var
bindingContext = new DefaultModelBindingContext
531
var
bindingContext = new DefaultModelBindingContext
557
var
bindingContext = new DefaultModelBindingContext
572
var
bindingContext = new DefaultModelBindingContext
595
var
bindingContext = CreateContext(GetMetadataForType(typeof(Person)), new Person());
618
var
bindingContext = CreateContext(GetMetadataForType(typeof(Person)), model: null);
645
var
bindingContext = new DefaultModelBindingContext()
672
var
bindingContext = new DefaultModelBindingContext()
700
var
bindingContext = new DefaultModelBindingContext()
727
var
bindingContext = new DefaultModelBindingContext()
753
var
bindingContext = new DefaultModelBindingContext()
784
var
bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
816
var
bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
850
var
bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
881
var
bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
901
var
bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
923
var
bindingContext = CreateContext(containerMetadata, model);
945
var
bindingContext = CreateContext(containerMetadata, model);
972
var
bindingContext = CreateContext(containerMetadata, model);
1005
var
bindingContext = CreateContext(property);
1028
var
bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
1050
var
bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
1074
var
bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
1098
var
bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
1141
var
bindingContext = CreateContext(GetMetadataForType(type), model);
1167
var
bindingContext = CreateContext(modelMetadata, model);
1185
var
bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
1209
var
bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
1229
var
bindingContext = CreateContext(GetMetadataForType(model.GetType()), model);
1270
private static
DefaultModelBindingContext
CreateContext(ModelMetadata metadata, object model = null)
ModelBinding\Binders\DateTimeModelBinderTest.cs (10)
15
var
bindingContext = GetBindingContext();
34
var
bindingContext = GetBindingContext();
57
var
bindingContext = GetBindingContext();
80
var
bindingContext = GetBindingContext(typeof(DateTime));
95
var
bindingContext = GetBindingContext(typeof(DateTime?));
113
var
bindingContext = GetBindingContext();
138
var
bindingContext = GetBindingContext(typeof(DateTime?));
161
var
bindingContext = GetBindingContext(type);
183
var
bindingContext = GetBindingContext();
207
private static
DefaultModelBindingContext
GetBindingContext(Type modelType = null)
ModelBinding\Binders\DictionaryModelBinderTest.cs (17)
31
var
bindingContext = GetModelBindingContext(isReadOnly, values);
69
var
bindingContext = GetModelBindingContext(isReadOnly, values);
137
var
bindingContext = CreateContext();
170
var
bindingContext = CreateContext();
208
var
bindingContext = CreateContext();
245
var
bindingContext = CreateContext();
295
var
bindingContext = CreateContext();
332
var
bindingContext = CreateContext();
391
var
bindingContext = CreateContext();
431
var
bindingContext = CreateContext();
467
var
bindingContext = CreateContext();
515
var
bindingContext = CreateContext();
562
var
bindingContext = CreateContext();
620
private static
DefaultModelBindingContext
CreateContext()
626
var
modelBindingContext = new DefaultModelBindingContext()
664
private static
DefaultModelBindingContext
GetModelBindingContext(
682
var
bindingContext = CreateContext();
ModelBinding\Binders\EnumTypeModelBinderTest.cs (2)
235
private static (
DefaultModelBindingContext
, IModelBinder) GetBinderAndContext(
241
var
bindingContext = new DefaultModelBindingContext
ModelBinding\Binders\FloatingPointTypeModelBinderTestOfT.cs (16)
36
var
bindingContext = GetBindingContext(destinationType);
56
var
bindingContext = GetBindingContext(destinationType);
80
var
bindingContext = GetBindingContext(destinationType);
104
var
bindingContext = GetBindingContext(destinationType);
128
var
bindingContext = GetBindingContext(destinationType);
152
var
bindingContext = GetBindingContext(destinationType);
176
var
bindingContext = GetBindingContext(destinationType);
194
var
bindingContext = GetBindingContext(typeof(TFloatingPoint));
219
var
bindingContext = GetBindingContext(typeof(TFloatingPoint?));
240
var
bindingContext = GetBindingContext(destinationType);
262
var
bindingContext = GetBindingContext(destinationType);
283
var
bindingContext = GetBindingContext(destinationType);
304
var
bindingContext = GetBindingContext(destinationType);
325
var
bindingContext = GetBindingContext(destinationType);
346
var
bindingContext = GetBindingContext(destinationType);
369
private static
DefaultModelBindingContext
GetBindingContext(Type modelType)
ModelBinding\Binders\FormCollectionModelBinderTest.cs (4)
24
var
bindingContext = GetBindingContext(typeof(IFormCollection), httpContext);
45
var
bindingContext = GetBindingContext(typeof(IFormCollection), httpContext);
66
private static
DefaultModelBindingContext
GetBindingContext(Type modelType, HttpContext httpContext)
69
var
bindingContext = new DefaultModelBindingContext
ModelBinding\Binders\FormFileModelBinderTest.cs (20)
22
var
bindingContext = GetBindingContext(typeof(IEnumerable<IFormFile>), httpContext);
51
var bindingContext =
DefaultModelBindingContext
.CreateBindingContext(
89
var bindingContext =
DefaultModelBindingContext
.CreateBindingContext(
131
var bindingContext =
DefaultModelBindingContext
.CreateBindingContext(
166
var bindingContext =
DefaultModelBindingContext
.CreateBindingContext(
202
var bindingContext =
DefaultModelBindingContext
.CreateBindingContext(
229
var
bindingContext = GetBindingContext(typeof(IEnumerable<IFormFile>), httpContext);
262
var
bindingContext = GetBindingContext(destinationType, httpContext);
279
var
bindingContext = GetBindingContext(typeof(IFormFile), httpContext);
297
var
bindingContext = GetBindingContext(typeof(IFormFile), httpContext);
317
var
bindingContext = GetBindingContext(typeof(IFormFile), httpContext);
341
var
bindingContext = GetBindingContext(typeof(IFormFile), httpContext);
367
var
bindingContext = GetBindingContext(typeof(IFormFile), httpContext);
387
var
bindingContext = GetBindingContext(typeof(IFormFile), httpContext);
405
var
bindingContext = GetBindingContextForReadOnlyArray(httpContext);
422
var
bindingContext = GetBindingContext(typeof(ISet<IFormFile>), httpContext);
432
private static
DefaultModelBindingContext
GetBindingContextForReadOnlyArray(HttpContext httpContext)
445
private static
DefaultModelBindingContext
GetBindingContext(Type modelType, HttpContext httpContext)
453
private static
DefaultModelBindingContext
GetBindingContext(
457
var
bindingContext = new DefaultModelBindingContext
ModelBinding\Binders\HeaderModelBinderTests.cs (16)
25
var
bindingContext = CreateContext(type);
45
var
bindingContext = CreateContext(type);
74
var
bindingContext = CreateContext(destinationType);
94
var
bindingContext = CreateContext(type);
141
var
bindingContext = CreateContext(modelType);
163
var
bindingContext = CreateContext(modelType);
180
var
bindingContext = CreateContext(modelType);
204
var
bindingContext = CreateContext(destinationType);
221
var
bindingContext = CreateContext(GetMetadataForReadOnlyArray());
238
var
bindingContext = CreateContext(GetMetadataForType(typeof(string)), expectedValueProvider);
262
var
bindingContext = CreateContext(GetMetadataForType(typeof(string)), testValueProvider.Object);
284
var
bindingContext = CreateContext(modelType);
308
var
bindingContext = CreateContext(modelType);
323
private static
DefaultModelBindingContext
CreateContext(Type modelType)
328
private static
DefaultModelBindingContext
CreateContext(
372
private static IModelBinder CreateBinder(
DefaultModelBindingContext
bindingContext)
ModelBinding\Binders\KeyValuePairModelBinderTest.cs (11)
18
var
bindingContext = GetBindingContext(valueProvider, typeof(KeyValuePair<int, string>));
43
var
bindingContext = GetBindingContext(valueProvider, typeof(KeyValuePair<int, string>));
69
var
bindingContext = GetBindingContext(valueProvider, typeof(KeyValuePair<int, string>));
90
var
bindingContext = GetBindingContext(valueProvider, typeof(KeyValuePair<int, string>));
131
var
bindingContext = GetBindingContext(valueProvider, typeof(KeyValuePair<int, string>));
151
var
bindingContext = CreateContext();
182
var
bindingContext = CreateContext();
199
private static
DefaultModelBindingContext
CreateContext()
201
var
modelBindingContext = new DefaultModelBindingContext()
213
private static
DefaultModelBindingContext
GetBindingContext(
218
var
bindingContext = new DefaultModelBindingContext
ModelBinding\Binders\ServicesModelBinderTest.cs (3)
19
var
bindingContext = GetBindingContext(type);
33
private static
DefaultModelBindingContext
GetBindingContext(Type modelType)
42
var
bindingContext = new DefaultModelBindingContext
ModelBinding\Binders\SimpleTypeModelBinderTest.cs (18)
21
var
bindingContext = GetBindingContext(typeof(string));
43
var
bindingContext = GetBindingContext(typeof(string));
95
var
bindingContext = GetBindingContext(destinationType);
115
var
bindingContext = GetBindingContext(destinationType);
139
var
bindingContext = GetBindingContext(typeof(int));
180
var
bindingContext = GetBindingContext(typeof(int));
202
var
bindingContext = GetBindingContext(typeof(string));
222
var
bindingContext = GetBindingContext(typeof(int?));
243
var
bindingContext = GetBindingContext(typeof(double?));
265
var
bindingContext = GetBindingContext(typeof(int));
311
var
bindingContext = GetBindingContext(type);
339
var
bindingContext = GetBindingContext(typeof(decimal));
360
var
bindingContext = GetBindingContext(typeof(decimal));
384
var
bindingContext = GetBindingContext(typeof(IntEnum));
405
var
bindingContext = GetBindingContext(typeof(IntEnum));
446
var
bindingContext = GetBindingContext(typeof(IntEnum));
469
var
bindingContext = GetBindingContext(typeof(FlagsEnum));
486
private static
DefaultModelBindingContext
GetBindingContext(Type modelType)
ModelBinding\Binders\TryParseTypeModelBinderTest.cs (18)
44
var
bindingContext = GetBindingContext(destinationType);
64
var
bindingContext = GetBindingContext(destinationType);
88
var
bindingContext = GetBindingContext(typeof(int));
129
var
bindingContext = GetBindingContext(typeof(int));
149
var
bindingContext = GetBindingContext(typeof(int?));
170
var
bindingContext = GetBindingContext(typeof(double?));
192
var
bindingContext = GetBindingContext(typeof(int));
237
var
bindingContext = GetBindingContext(type);
265
var
bindingContext = GetBindingContext(typeof(decimal));
286
var
bindingContext = GetBindingContext(typeof(decimal));
310
var
bindingContext = GetBindingContext(typeof(IntEnum));
331
var
bindingContext = GetBindingContext(typeof(IntEnum));
368
var
bindingContext = GetBindingContext(typeof(IntEnum));
391
var
bindingContext = GetBindingContext(typeof(FlagsEnum));
418
var
bindingContext = GetBindingContext(typeof(TestTryParseClass));
441
var
bindingContext = GetBindingContext(typeof(TestTryParseClass));
467
var
bindingContext = GetBindingContext(typeof(FlagsEnum));
491
private static
DefaultModelBindingContext
GetBindingContext(Type modelType)
ModelBinding\DefaultModelBindingContextTest.cs (5)
20
var
bindingContext = new DefaultModelBindingContext
72
var context =
DefaultModelBindingContext
.CreateBindingContext(
95
var context =
DefaultModelBindingContext
.CreateBindingContext(
124
var context =
DefaultModelBindingContext
.CreateBindingContext(
146
var
bindingContext = new DefaultModelBindingContext
ModelBinding\ModelBindingHelperTest.cs (14)
1346
var
bindingContext = GetBindingContext(destinationType);
1367
var
bindingContext = GetBindingContext(destinationType);
1383
var
bindingContext = GetBindingContext(destinationType);
1396
var
bindingContext = GetBindingContext(typeof(IList<int>));
1417
var
bindingContext = GetBindingContextForProperty(propertyName);
1433
var
bindingContext = GetBindingContextForProperty(propertyName);
1448
var
bindingContext = GetBindingContextForProperty(propertyName);
1463
var
bindingContext = GetBindingContextForProperty(
1484
var
bindingContext = GetBindingContext(destinationType);
1507
private static
DefaultModelBindingContext
GetBindingContextForProperty(string propertyName)
1513
var
bindingContext = GetBindingContext(modelMetadata);
1521
private static
DefaultModelBindingContext
GetBindingContext(Type modelType)
1529
private static
DefaultModelBindingContext
GetBindingContext(ModelMetadata metadata)
1531
var
bindingContext = new DefaultModelBindingContext
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (1)
ModelMetadataProviderTest.cs (1)
24
var
context = new DefaultModelBindingContext();