aspnetcore/test/Microsoft.AspNet.Mvc.Core.Test/ModelBinding
Doug Bunting c4fa402105 Add `ModelBindingResult.IsFatalError` and make body binding more consistent
- part I of II for #2445 (with a duplicate code PR to follow)
- needed for #2445 because new `ModelState` entries for values will make inconsisteny worse
- change `BodyModelBinder` to use same keys for all `ModelBindingResult`s and `ModelState` entries
 - return fatal error result if formatter adds an error to `ModelState`
 - update potential callers to avoid avoid ignoring `IsFatalError`
- fix test attempting to serialize all of `ModelState`
 - will be borked with additional `RawValue`s in state
- fix two other tests that serialized `ModelState` but checked only `IsValid`

nits:
- address minor inconsistencies in `ModelBindingContext`
- use `System.Reflection.Extensions` package a bit more, where it's already referenced
- remove some unused resources
2015-06-18 16:19:01 -07:00
..
Metadata Go one less step when resolving `[ModelMetadataType]` 2015-06-14 18:02:10 -07:00
Validation Split Mvc.Core 2015-06-09 02:12:13 -07:00
ArrayModelBinderTest.cs Fix #1579 - Bind top-level collections as an empty collection 2015-05-21 22:46:04 -07:00
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 Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
BodyModelBinderTests.cs Add `ModelBindingResult.IsFatalError` and make body binding more consistent 2015-06-18 16:19:01 -07:00
ByteArrayModelBinderTests.cs `ByteArrayModelBinder` should return `null` only when type is not matched 2015-06-01 12:20:17 -07:00
CancellationTokenModelBinderTests.cs Correct test expectations 2015-06-01 12:15:39 -07:00
CollectionModelBinderTest.cs Fix #1579 - Bind top-level collections as an empty collection 2015-05-21 22:46:04 -07:00
ComplexModelDtoTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
CompositeModelBinderTest.cs Correct test expectations 2015-06-01 12:15:39 -07:00
CompositeValueProviderTests.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
DictionaryBasedValueProviderTests.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
DictionaryModelBinderTest.cs Fix #1579 - Bind top-level collections as an empty collection 2015-05-21 22:46:04 -07:00
ElementalValueProviderTests.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
FormCollectionModelBinderTest.cs React to Http namespace changes. 2015-05-07 15:19:10 -07:00
FormFileModelBinderTest.cs React to Http namespace changes. 2015-05-07 15:19:10 -07:00
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 Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
ModelBindingResultTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
MutableObjectModelBinderTest.cs Using 'nameof' operator instead of margic strings 2015-06-12 02:26:34 +03:00
QueryStringValueProviderFactoryTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
ReadableStringCollectionValueProviderTest.cs React to Http namespace changes. 2015-05-07 15:19:10 -07:00
SimpleHttpValueProvider.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
TestValueProvider.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
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