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