Base:
property
ValueProvider
Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext.ValueProvider
113 writes to ValueProvider
Microsoft.AspNetCore.Mvc.Core (2)
ModelBinding\DefaultModelBindingContext.cs (2)
231
ValueProvider
= FilterValueProvider(valueProvider, bindingSource),
261
ValueProvider
= FilterValueProvider(OriginalValueProvider, modelMetadata.BindingSource);
Microsoft.AspNetCore.Mvc.Core.Test (111)
ModelBinding\Binders\ArrayModelBinderTest.cs (4)
75
bindingContext.
ValueProvider
= new TestValueProvider(new Dictionary<string, object>());
109
bindingContext.
ValueProvider
= new TestValueProvider(new Dictionary<string, object>());
155
bindingContext.
ValueProvider
= new TestValueProvider(new Dictionary<string, object>());
224
bindingContext.
ValueProvider
= valueProvider;
ModelBinding\Binders\BinderTypeModelBinderTest.cs (1)
81
ValueProvider
= Mock.Of<IValueProvider>(),
ModelBinding\Binders\BodyModelBinderTests.cs (1)
699
ValueProvider
= Mock.Of<IValueProvider>(),
ModelBinding\Binders\ByteArrayModelBinderTests.cs (1)
111
ValueProvider
= valueProvider,
ModelBinding\Binders\CancellationTokenModelBinderTests.cs (1)
37
ValueProvider
= new SimpleValueProvider(),
ModelBinding\Binders\CollectionModelBinderTest.cs (6)
261
bindingContext.
ValueProvider
= new TestValueProvider(new Dictionary<string, object>());
295
bindingContext.
ValueProvider
= new TestValueProvider(new Dictionary<string, object>());
336
bindingContext.
ValueProvider
= new TestValueProvider(new Dictionary<string, object>());
369
bindingContext.
ValueProvider
= new TestValueProvider(new Dictionary<string, object>());
411
bindingContext.
ValueProvider
= new TestValueProvider(new Dictionary<string, object>());
492
bindingContext.
ValueProvider
= valueProvider;
ModelBinding\Binders\ComplexObjectModelBinderTest.cs (9)
104
bindingContext.
ValueProvider
= valueProvider.Object;
163
bindingContext.
ValueProvider
= valueProvider.Object;
191
bindingContext.
ValueProvider
= valueProvider.Object;
226
bindingContext.
ValueProvider
= valueProvider.Object;
260
bindingContext.
ValueProvider
= valueProvider.Object;
292
ValueProvider
= new TestValueProvider(new Dictionary<string, object>()),
344
ValueProvider
= new TestValueProvider(new Dictionary<string, object>()),
388
ValueProvider
= new TestValueProvider(new Dictionary<string, object>()),
1118
ValueProvider
= valueProvider,
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (11)
103
bindingContext.
ValueProvider
= valueProvider.Object;
162
bindingContext.
ValueProvider
= valueProvider.Object;
190
bindingContext.
ValueProvider
= valueProvider.Object;
225
bindingContext.
ValueProvider
= valueProvider.Object;
259
bindingContext.
ValueProvider
= valueProvider.Object;
304
ValueProvider
= mockValueProvider.Object,
352
ValueProvider
= new TestValueProvider(new Dictionary<string, object>()),
404
ValueProvider
= new TestValueProvider(new Dictionary<string, object>()),
448
ValueProvider
= new TestValueProvider(new Dictionary<string, object>()),
1011
bindingContext.
ValueProvider
= valueProvider.Object;
1282
ValueProvider
= valueProvider,
ModelBinding\Binders\DateTimeModelBinderTest.cs (8)
16
bindingContext.
ValueProvider
= new SimpleValueProvider
35
bindingContext.
ValueProvider
= new SimpleValueProvider
58
bindingContext.
ValueProvider
= new SimpleValueProvider(new CultureInfo("en-GB"))
114
bindingContext.
ValueProvider
= new SimpleValueProvider
139
bindingContext.
ValueProvider
= new SimpleValueProvider
162
bindingContext.
ValueProvider
= new SimpleValueProvider(new CultureInfo("fr-FR"))
185
bindingContext.
ValueProvider
= new SimpleValueProvider(new CultureInfo("fr-FR"))
215
ValueProvider
= new SimpleValueProvider() // empty
ModelBinding\Binders\DictionaryModelBinderTest.cs (14)
32
bindingContext.
ValueProvider
= CreateEnumerableValueProvider("{0}", values);
70
bindingContext.
ValueProvider
= CreateEnumerableValueProvider("{0}", values);
139
bindingContext.
ValueProvider
= CreateEnumerableValueProvider(keyFormat, dictionary);
172
bindingContext.
ValueProvider
= CreateEnumerableValueProvider(keyFormat, dictionary);
210
bindingContext.
ValueProvider
= CreateTestValueProvider("prefix[{0}]", dictionary);
247
bindingContext.
ValueProvider
= CreateTestValueProvider("prefix[{0}]", dictionary);
297
bindingContext.
ValueProvider
= CreateEnumerableValueProvider("prefix[{0}]", stringDictionary);
334
bindingContext.
ValueProvider
= CreateEnumerableValueProvider("{0}", stringDictionary);
394
bindingContext.
ValueProvider
= CreateEnumerableValueProvider(keyFormat, dictionary);
446
bindingContext.
ValueProvider
= new TestValueProvider(new Dictionary<string, object>());
481
bindingContext.
ValueProvider
= new TestValueProvider(new Dictionary<string, object>());
530
bindingContext.
ValueProvider
= new TestValueProvider(new Dictionary<string, object>());
575
bindingContext.
ValueProvider
= new TestValueProvider(new Dictionary<string, object>());
685
bindingContext.
ValueProvider
= valueProvider;
ModelBinding\Binders\EnumTypeModelBinderTest.cs (1)
246
ValueProvider
= new SimpleValueProvider()
ModelBinding\Binders\FloatingPointTypeModelBinderTestOfT.cs (15)
37
bindingContext.
ValueProvider
= new SimpleValueProvider
57
bindingContext.
ValueProvider
= new SimpleValueProvider
81
bindingContext.
ValueProvider
= new SimpleValueProvider(new CultureInfo("en-GB"))
105
bindingContext.
ValueProvider
= new SimpleValueProvider(new CultureInfo("en-GB"))
129
bindingContext.
ValueProvider
= new SimpleValueProvider(new CultureInfo("en-GB"))
153
bindingContext.
ValueProvider
= new SimpleValueProvider(new CultureInfo("en-GB"))
195
bindingContext.
ValueProvider
= new SimpleValueProvider
220
bindingContext.
ValueProvider
= new SimpleValueProvider
241
bindingContext.
ValueProvider
= new SimpleValueProvider
263
bindingContext.
ValueProvider
= new SimpleValueProvider
284
bindingContext.
ValueProvider
= new SimpleValueProvider(new CultureInfo("fr-FR"))
305
bindingContext.
ValueProvider
= new SimpleValueProvider(new CultureInfo("en-GB"))
326
bindingContext.
ValueProvider
= new SimpleValueProvider(new CultureInfo("en-GB"))
347
bindingContext.
ValueProvider
= new SimpleValueProvider(new CultureInfo("fr-FR"))
376
ValueProvider
= new SimpleValueProvider() // empty
ModelBinding\Binders\HeaderModelBinderTests.cs (1)
360
ValueProvider
= valueProvider,
ModelBinding\Binders\KeyValuePairModelBinderTest.cs (3)
160
bindingContext.
ValueProvider
= new TestValueProvider(new Dictionary<string, object>());
190
bindingContext.
ValueProvider
= new TestValueProvider(new Dictionary<string, object>());
223
ValueProvider
= valueProvider,
ModelBinding\Binders\SimpleTypeModelBinderTest.cs (17)
22
bindingContext.
ValueProvider
= new SimpleValueProvider
44
bindingContext.
ValueProvider
= new SimpleValueProvider
96
bindingContext.
ValueProvider
= new SimpleValueProvider
116
bindingContext.
ValueProvider
= new SimpleValueProvider
140
bindingContext.
ValueProvider
= new SimpleValueProvider
203
bindingContext.
ValueProvider
= new SimpleValueProvider
223
bindingContext.
ValueProvider
= new SimpleValueProvider
244
bindingContext.
ValueProvider
= new SimpleValueProvider
267
bindingContext.
ValueProvider
= new SimpleValueProvider
312
bindingContext.
ValueProvider
= new SimpleValueProvider(new CultureInfo("en-GB"))
340
bindingContext.
ValueProvider
= new SimpleValueProvider(new CultureInfo("fr-FR"))
361
bindingContext.
ValueProvider
= new SimpleValueProvider(new CultureInfo("en-GB"))
385
bindingContext.
ValueProvider
= new SimpleValueProvider
406
bindingContext.
ValueProvider
= new SimpleValueProvider
447
bindingContext.
ValueProvider
= new SimpleValueProvider
470
bindingContext.
ValueProvider
= new SimpleValueProvider
493
ValueProvider
= new SimpleValueProvider() // empty
ModelBinding\Binders\TryParseTypeModelBinderTest.cs (17)
45
bindingContext.
ValueProvider
= new SimpleValueProvider
65
bindingContext.
ValueProvider
= new SimpleValueProvider
89
bindingContext.
ValueProvider
= new SimpleValueProvider
150
bindingContext.
ValueProvider
= new SimpleValueProvider
171
bindingContext.
ValueProvider
= new SimpleValueProvider
194
bindingContext.
ValueProvider
= new SimpleValueProvider
238
bindingContext.
ValueProvider
= new SimpleValueProvider(new CultureInfo("en-GB"))
266
bindingContext.
ValueProvider
= new SimpleValueProvider(new CultureInfo("fr-FR"))
287
bindingContext.
ValueProvider
= new SimpleValueProvider(new CultureInfo("en-GB"))
311
bindingContext.
ValueProvider
= new SimpleValueProvider
332
bindingContext.
ValueProvider
= new SimpleValueProvider
369
bindingContext.
ValueProvider
= new SimpleValueProvider
392
bindingContext.
ValueProvider
= new SimpleValueProvider
419
bindingContext.
ValueProvider
= new SimpleValueProvider
442
bindingContext.
ValueProvider
= new SimpleValueProvider
468
bindingContext.
ValueProvider
= new SimpleValueProvider
498
ValueProvider
= new SimpleValueProvider() // empty
ModelBinding\DefaultModelBindingContextTest.cs (1)
25
ValueProvider
= new SimpleValueProvider(),
4 references to ValueProvider
Microsoft.AspNetCore.Mvc.Core.Test (4)
ModelBinding\Binders\HeaderModelBinderTests.cs (2)
248
Assert.Same(expectedValueProvider, bindingContext.
ValueProvider
);
272
Assert.Same(testValueProvider.Object, bindingContext.
ValueProvider
);
ModelBinding\DefaultModelBindingContextTest.cs (2)
42
var originalValueProvider = bindingContext.
ValueProvider
;
58
Assert.Same(originalValueProvider, bindingContext.
ValueProvider
);