aspnetcore/test/Microsoft.AspNet.Mvc.ModelB...
Ryan Nowak 1631ca1a47 Fix for #1681 - Model state errors are wrong with attributes like [FromHeader]
The issue here is that a model state error is added with the model name
'doubled'. This is on a fairly obscure code path and the code dates back
to the original WSR git checkin of webapi. There are no wsr tests that
verify this behavior.

The cause here is that our 'greedy' model binders (like
FromHeaderModelBinder) return 'true' whether or not they successfully
found a model, because they don't want other model binders to run.

This also has an effect on the validation system. That means that
validators will run and attempt to validate the model (which may be null).
That's that rare case where we get to this code path.
2014-12-10 14:03:51 -08:00
..
Binders Adding Support for TryUpdateModel using include expressions and predicate. 2014-12-05 17:28:43 -08:00
Internal
Metadata Adding Support for TryUpdateModel using include expressions and predicate. 2014-12-05 17:28:43 -08:00
Properties
Utils
Validation Fix for #1681 - Model state errors are wrong with attributes like [FromHeader] 2014-12-10 14:03:51 -08:00
ValueProviders Fix a test based on the resolution of #1609 2014-11-26 11:48:01 -08:00
BindAttributeTest.cs Adding Support for TryUpdateModel using include expressions and predicate. 2014-12-05 17:28:43 -08:00
Microsoft.AspNet.Mvc.ModelBinding.Test.kproj Add schema version to kproj files 2014-11-25 10:57:58 -08:00
ModelBindingContextTest.cs Apply VS' FormatDocument and RemoveAndSort to all *.cs files 2014-11-20 21:15:46 -08:00
Resources.resx Delete trailing whitespace 2014-11-20 16:18:09 -08:00
SimpleTypeExcludeFilterTest.cs [Partial fix for #1372]Added SimpleTypesExcludeFilter to exlcude validation on simple types and also added tests to cover scenarios. 2014-12-03 14:09:51 -08:00
project.json