aspnetcore/test/Microsoft.AspNet.Mvc.Core.Test/ModelBinding
Doug Bunting 715a0b6021 Add `ModelState` entries for greedy and type-matching model binders
- part II of II for #2445
- `FormCollectionModelBinder` is an exception because container is not user-provided
 - no `ModelState` entry added
- enable tests that #2445 was blocking
 - fix these and other tests expecting different `ModelState` entries
- simplify logic in `FormFileModelBinder`

`ValueProviderResult`
- remove `protected` setters and parameterless constructor
 - no scenario for their use in subclasses; however `ConvertTo()` remains `virtual`
- add single-parameter constructor
 - use in most of the greedy and type-matching model binders
- add doc comments throughout class

nits:
- use new `ValueProviderResult` constructor in many existing tests
- `""` -> `string.Empty` and `vpr` -> `valueProviderResult` in `ValueProviderResultTest`
- improve some test names in `BodyValidationIntegrationTests`
- do not check `Message` of a Json.NET `Exception`
2015-06-23 22:34:55 -07:00
..
Metadata Go one less step when resolving `[ModelMetadataType]` 2015-06-14 18:02:10 -07:00
Validation Add `ModelState` entries for greedy and type-matching model binders 2015-06-23 22:34:55 -07:00
ArrayModelBinderTest.cs
BinderTypeBasedModelBinderModelBinderTest.cs Correct test expectations 2015-06-01 12:15:39 -07:00
BindingSourceModelBinderTest.cs Correct test expectations 2015-06-01 12:15:39 -07:00
BindingSourceValueProviderTest.cs
BodyModelBinderTests.cs Add `ModelState` entries for greedy and type-matching model binders 2015-06-23 22:34:55 -07:00
ByteArrayModelBinderTests.cs Add `ModelState` entries for greedy and type-matching model binders 2015-06-23 22:34:55 -07:00
CancellationTokenModelBinderTests.cs Correct test expectations 2015-06-01 12:15:39 -07:00
CollectionModelBinderTest.cs
ComplexModelDtoTest.cs
CompositeModelBinderTest.cs Correct test expectations 2015-06-01 12:15:39 -07:00
CompositeValueProviderTests.cs
DictionaryBasedValueProviderTests.cs
DictionaryModelBinderTest.cs
ElementalValueProviderTests.cs
FormCollectionModelBinderTest.cs
FormFileModelBinderTest.cs
FormValueProviderFactoryTests.cs Correct test expectations 2015-06-01 12:15:39 -07:00
HeaderModelBinderTests.cs Correct test expectations 2015-06-01 12:15:39 -07:00
KeyValuePairModelBinderTest.cs Correct test expectations 2015-06-01 12:15:39 -07:00
ModelBindingContextTest.cs
ModelBindingResultTest.cs
MutableObjectModelBinderTest.cs Using 'nameof' operator instead of margic strings 2015-06-12 02:26:34 +03:00
QueryStringValueProviderFactoryTest.cs
ReadableStringCollectionValueProviderTest.cs
SimpleHttpValueProvider.cs
TestValueProvider.cs
TypeConverterModelBinderTest.cs Correct test expectations 2015-06-01 12:15:39 -07:00
TypeMatchModelBinderTest.cs Correct test expectations 2015-06-01 12:15:39 -07:00