aspnetcore/test/Microsoft.AspNet.Mvc.Functi...
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
..
compiler/resources
…
ActivatorTests.cs React to DI changes part 2 2014-12-03 13:36:54 -08:00
AntiForgeryTestHelper.cs Delete trailing whitespace 2014-11-20 16:18:09 -08:00
AntiForgeryTests.cs Delete trailing whitespace 2014-11-20 16:18:09 -08:00
ApiExplorerTest.cs Apply VS' FormatDocument and RemoveAndSort to all *.cs files 2014-11-20 21:15:46 -08:00
ApplicationModelTest.cs Apply VS' FormatDocument and RemoveAndSort to all *.cs files 2014-11-20 21:15:46 -08:00
BasicTests.cs Fix flaky NoContentFormatter test 2014-11-20 17:48:00 -08:00
CompositeViewEngineTests.cs
…
ConnegTests.cs Apply VS' FormatDocument and RemoveAndSort to all *.cs files 2014-11-20 21:15:46 -08:00
CustomUrlHelperTests.cs Add missing license headers 2014-11-20 22:54:05 -08:00
DefaultOrderTest.cs
…
DependencyResolverTests.cs Add missing license headers 2014-11-20 22:54:05 -08:00
DirectivesTest.cs
…
FileResultTests.cs
…
FiltersTest.cs React to DI changes part 2 2014-12-03 13:36:54 -08:00
FlushPointTest.cs Apply VS' FormatDocument and RemoveAndSort to all *.cs files 2014-11-20 21:15:46 -08:00
InlineConstraintTests.cs Changed to use OptionalRouteConstraint created by Routing to use for inline optional parameters in attribute routing. Also added tests for inline parameters. 2014-12-04 11:00:48 -08:00
InputFormatterTests.cs Delete trailing whitespace 2014-11-20 16:18:09 -08:00
InputObjectValidationTests.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
JsonOutputFormatterTests.cs Add missing license headers 2014-11-20 22:54:05 -08:00
JsonResultTest.cs Fix #1370 - Always use the provided formatter in JsonResult 2014-10-31 14:30:31 -07:00
LinkGenerationTests.cs
…
Microsoft.AspNet.Mvc.FunctionalTests.kproj Add schema version to kproj files 2014-11-25 10:57:58 -08:00
ModelBindingFromHeaderTest.cs Fix for #1681 - Model state errors are wrong with attributes like [FromHeader] 2014-12-10 14:03:51 -08:00
ModelBindingModelBinderAttributeTest.cs Adding support for ModelMetadataAttribute in core. 2014-12-05 12:00:19 -08:00
ModelBindingTests.cs Adding Support for TryUpdateModel using include expressions and predicate. 2014-12-05 17:28:43 -08:00
MvcSampleTests.cs Extend MVC Sample functional test to include all Home views 2014-11-22 10:36:46 -08:00
MvcStartupTests.cs
…
NullLoggerFactory.cs Add missing license headers 2014-11-20 22:54:05 -08:00
OutputFormatterTest.cs matched classnames with filenames 2014-11-25 11:21:17 -08:00
PrecompilationTest.cs Fixing build break 2014-12-05 15:16:27 -08:00
RazorInstrumentationTests.cs React to fallback changes 2014-11-20 17:43:55 -08:00
RazorViewLocationSpecificationTest.cs Layout specification and discovery should follow the same behavior as 2014-12-03 11:54:46 -08:00
RequestServicesTest.cs Adding FromServicesAttribute. 2014-11-26 15:35:08 -08:00
ResourceHelpers.cs
…
RoundTripTests.cs TODO removal 2014-11-20 15:01:35 -08:00
RouteDataTest.cs Adding a functional test that modifies data tokens 2014-11-17 18:35:04 -08:00
RoutingTests.cs Fix for #1194 - Error using [HttpPost] and [Route] together 2014-11-19 15:52:20 -08:00
TagHelperSampleTest.cs Add functional test of MVC tag helper sample 2014-12-05 15:48:43 -08:00
TagHelpersTest.cs
…
TestApplicationEnvironment.cs
…
TestAssemblyProvider.cs Apply VS' FormatDocument and RemoveAndSort to all *.cs files 2014-11-20 21:15:46 -08:00
TestConfigurationProvider.cs
…
TestHelper.cs React to fallback changes 2014-11-20 17:43:55 -08:00
ValueProviderTest.cs matched classnames with filenames 2014-11-25 11:21:17 -08:00
VersioningTests.cs Apply VS' FormatDocument and RemoveAndSort to all *.cs files 2014-11-20 21:15:46 -08:00
ViewComponentTests.cs Fix for #1052 - ViewComponents should support fully qualified names 2014-10-29 17:34:01 -07:00
ViewEngineTests.cs Layout specification and discovery should follow the same behavior as 2014-12-03 11:54:46 -08:00
WebApiCompatShimActionResultTest.cs Apply VS' FormatDocument and RemoveAndSort to all *.cs files 2014-11-20 21:15:46 -08:00
WebApiCompatShimActionSelectionTest.cs Delete trailing whitespace 2014-11-20 16:18:09 -08:00
WebApiCompatShimBasicTest.cs Apply VS' FormatDocument and RemoveAndSort to all *.cs files 2014-11-20 21:15:46 -08:00
WebApiCompatShimParameterBindingTest.cs Apply VS' FormatDocument and RemoveAndSort to all *.cs files 2014-11-20 21:15:46 -08:00
XmlOutputFormatterTests.cs Apply VS' FormatDocument and RemoveAndSort to all *.cs files 2014-11-20 21:15:46 -08:00
XmlSerializerInputFormatterTests.cs
…
project.json Add functional test of MVC tag helper sample 2014-12-05 15:48:43 -08:00