aspnetcore/test/Microsoft.AspNet.Mvc.Core.Test/ModelBinding
Doug Bunting 79a2982441 Add support for model binding dictionaries from `prefix[name]=value` entries
- #1418
- add new fallback binding in `DictionaryModelBinder`
 - similar to MVC 5 approach but more explicit and with better key conversion support
- fix bugs in `PrefixContainer` encountered while adding new tests of #1418 scenarios
 - did not handle entries like "[key]" or "prefix.key[index]" correctly
 - refactor part of `GetKeyFromEmptyPrefix()` into `IndexOfDelimiter()`; share with `GetKeyFromNonEmptyPrefix()`
 - extend `ReadableStringCollectionValueProviderTest` to cover bracketed key segments

nits:
- remove use of "foo", "bar", and "baz" in affected test classes
- `""` -> `string.Empty`
- `vpResult` -> `result`
2015-07-20 16:33:35 -07:00
..
Metadata
Validation Fixing tests in Mono. 2015-07-02 17:24:14 -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 Fixing tests in Mono. 2015-07-02 17:24:14 -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 support for model binding dictionaries from `prefix[name]=value` entries 2015-07-20 16:33:35 -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 Remove a VS build warning 2015-07-17 08:50:28 -07:00
QueryStringValueProviderFactoryTest.cs
ReadableStringCollectionValueProviderTest.cs Add support for model binding dictionaries from `prefix[name]=value` entries 2015-07-20 16:33:35 -07:00
SimpleHttpValueProvider.cs
TestValueProvider.cs
TypeConverterModelBinderTest.cs Modify `TypeConverterModelBinder`'s `ModelBindingResult.IsModelSet` to be false when model value is `null` for non-null accepting types. 2015-07-02 20:03:32 -07:00
TypeMatchModelBinderTest.cs