aspnetcore/test/Microsoft.AspNet.Mvc.ModelB.../Binders
Ryan Nowak 12f8f23ccb Make BindingSource extensible
This is a major refactor of how IBinderMetadata interacts with model
binders and value providers. We're doing this to support better
extensibility for metadata in ApiExplorer.

You'll notice a bunch of deleted code in DefaultApiDescriptionProvider
that maps metadata marker interfaces to a fixed list of Api sources. This
is replaced now with IBindingSourceMetadata - which also replaces the
hierarchy of marker interfaces. Now user code can create an arbitrary
binding source and have a consistent API for model-binders,
value-providers and full-visibility in ApiExplorer as
well.

Additonally, there's some error checking in place that better enforces the
constraints we already have in the system. IE you can't create a 'greedy'
model binder that uses value-provider data.

Two additional enhancements are planned for followup PRs:
1. Add a BindingSource property to model-metadata. This will remove some
duplication, but I want to delay it because it would touch another 10 or
so files.

2. Add an extensibility interface for our 'special' model binders like the
file binder so these can show up in ApiExplorer as well.
2015-02-05 13:41:31 -08:00
..
ArrayModelBinderTest.cs Adding support for property level binding using IBinderMetadata and enabling FromXXX attributes to be decorated on properties. 2014-11-24 21:33:02 -08:00
BinderTypeBasedModelBinderModelBinderTest.cs Handle PipelineCore rename. 2015-01-15 15:25:17 -08:00
BindingSourceModelBinderTest.cs Make BindingSource extensible 2015-02-05 13:41:31 -08:00
BindingSourceValueProviderTest.cs Make BindingSource extensible 2015-02-05 13:41:31 -08:00
ByteArrayModelBinderTests.cs Added custom exception message for Format Exception 2015-02-05 10:51:32 -08:00
CancellationTokenModelBinderTests.cs Handle PipelineCore rename. 2015-01-15 15:25:17 -08:00
CollectionModelBinderTest.cs Adding support for property level binding using IBinderMetadata and enabling FromXXX attributes to be decorated on properties. 2014-11-24 21:33:02 -08:00
ComplexModelDtoResultTest.cs Fix for #1722 - FromHeader does not respect default value 2015-01-16 17:59:00 -08:00
ComplexModelDtoTest.cs
CompositeModelBinderTest.cs Issue #1695 - Create a pattern for a 'greedy' model binder. 2015-01-15 16:32:50 -08:00
DictionaryModelBinderTest.cs Adding support for property level binding using IBinderMetadata and enabling FromXXX attributes to be decorated on properties. 2014-11-24 21:33:02 -08:00
FormFileModelBinderTest.cs Fixed content-disposition quoted filename bug 2015-01-19 13:15:18 -08:00
HeaderModelBinderTests.cs Make BindingSource extensible 2015-02-05 13:41:31 -08:00
KeyValuePairModelBinderTest.cs Adding Resource Filters 2015-01-12 14:18:20 -08:00
ModelBindingContextTest.cs Adding support for property level binding using IBinderMetadata and enabling FromXXX attributes to be decorated on properties. 2014-11-24 21:33:02 -08:00
MutableObjectModelBinderTest.cs Make BindingSource extensible 2015-02-05 13:41:31 -08:00
TypeConverterModelBinderTest.cs Added custom exception message for Format Exception 2015-02-05 10:51:32 -08:00