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
AntiForgeryTests.cs
ApiExplorerTest.cs
ApplicationModelTest.cs
BasicTests.cs
CompositeViewEngineTests.cs
ConnegTests.cs
CustomUrlHelperTests.cs
DefaultOrderTest.cs
DependencyResolverTests.cs
DirectivesTest.cs
FileResultTests.cs
FiltersTest.cs React to DI changes part 2 2014-12-03 13:36:54 -08:00
FlushPointTest.cs
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
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
JsonResultTest.cs
LinkGenerationTests.cs
Microsoft.AspNet.Mvc.FunctionalTests.kproj
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
MvcStartupTests.cs
NullLoggerFactory.cs
OutputFormatterTest.cs
PrecompilationTest.cs Fixing build break 2014-12-05 15:16:27 -08:00
RazorInstrumentationTests.cs
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
RouteDataTest.cs
RoutingTests.cs
TagHelperSampleTest.cs Add functional test of MVC tag helper sample 2014-12-05 15:48:43 -08:00
TagHelpersTest.cs
TestApplicationEnvironment.cs
TestAssemblyProvider.cs
TestConfigurationProvider.cs
TestHelper.cs
ValueProviderTest.cs
VersioningTests.cs
ViewComponentTests.cs
ViewEngineTests.cs Layout specification and discovery should follow the same behavior as 2014-12-03 11:54:46 -08:00
WebApiCompatShimActionResultTest.cs
WebApiCompatShimActionSelectionTest.cs
WebApiCompatShimBasicTest.cs
WebApiCompatShimParameterBindingTest.cs
XmlOutputFormatterTests.cs
XmlSerializerInputFormatterTests.cs
project.json Add functional test of MVC tag helper sample 2014-12-05 15:48:43 -08:00