aspnetcore/test/Microsoft.AspNet.Mvc.Core.Test/ModelBinding
Doug Bunting a170a4e1e4 Add `ModelBindingContext.IsFirstChanceBinding` and `IsTopLevelObject`
- cleanup duplicate code now that #2445 is fixed
- update unit tests using old `ModelBindingContext` setups
- fix (just) one integration test where `MutableObjectModelBinder` incorrectly calculated
  `isTopLevelObject` and returned a non-`null` model
- undo temporary changes in `BodyModelBinderTests` due to increased reliance on incorrect
  `isTopLevelObject` in #2445 fix

nits:
- combine tests that are now duplicates
- beef up coverage of some `MutableObjectModelBinderTest` cases
- remove unused `using`s
2015-06-24 09:17:29 -07:00
..
Metadata
Validation Add `ModelState` entries for greedy and type-matching model binders 2015-06-23 22:34:55 -07:00
ArrayModelBinderTest.cs Add `ModelBindingContext.IsFirstChanceBinding` and `IsTopLevelObject` 2015-06-24 09:17:29 -07:00
BinderTypeBasedModelBinderModelBinderTest.cs
BindingSourceModelBinderTest.cs
BindingSourceValueProviderTest.cs
BodyModelBinderTests.cs Add `ModelBindingContext.IsFirstChanceBinding` and `IsTopLevelObject` 2015-06-24 09:17:29 -07:00
ByteArrayModelBinderTests.cs Add `ModelState` entries for greedy and type-matching model binders 2015-06-23 22:34:55 -07:00
CancellationTokenModelBinderTests.cs
CollectionModelBinderTest.cs Add `ModelBindingContext.IsFirstChanceBinding` and `IsTopLevelObject` 2015-06-24 09:17:29 -07:00
ComplexModelDtoTest.cs
CompositeModelBinderTest.cs
CompositeValueProviderTests.cs
DictionaryBasedValueProviderTests.cs
DictionaryModelBinderTest.cs Add `ModelBindingContext.IsFirstChanceBinding` and `IsTopLevelObject` 2015-06-24 09:17:29 -07:00
ElementalValueProviderTests.cs
FormCollectionModelBinderTest.cs
FormFileModelBinderTest.cs
FormValueProviderFactoryTests.cs
HeaderModelBinderTests.cs
KeyValuePairModelBinderTest.cs Add `ModelBindingContext.IsFirstChanceBinding` and `IsTopLevelObject` 2015-06-24 09:17:29 -07:00
ModelBindingContextTest.cs
ModelBindingResultTest.cs
MutableObjectModelBinderTest.cs Add `ModelBindingContext.IsFirstChanceBinding` and `IsTopLevelObject` 2015-06-24 09:17:29 -07:00
QueryStringValueProviderFactoryTest.cs
ReadableStringCollectionValueProviderTest.cs
SimpleHttpValueProvider.cs
TestValueProvider.cs
TypeConverterModelBinderTest.cs
TypeMatchModelBinderTest.cs