aspnetcore/test/Microsoft.AspNet.Mvc.Functi...
Doug Bunting c4fa402105 Add `ModelBindingResult.IsFatalError` and make body binding more consistent
- part I of II for #2445 (with a duplicate code PR to follow)
- needed for #2445 because new `ModelState` entries for values will make inconsisteny worse
- change `BodyModelBinder` to use same keys for all `ModelBindingResult`s and `ModelState` entries
 - return fatal error result if formatter adds an error to `ModelState`
 - update potential callers to avoid avoid ignoring `IsFatalError`
- fix test attempting to serialize all of `ModelState`
 - will be borked with additional `RawValue`s in state
- fix two other tests that serialized `ModelState` but checked only `IsValid`

nits:
- address minor inconsistencies in `ModelBindingContext`
- use `System.Reflection.Extensions` package a bit more, where it's already referenced
- remove some unused resources
2015-06-18 16:19:01 -07:00
..
Logging Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
compiler/resources Make `string`-based expression evaluations behave consistently 2015-06-16 21:54:56 -07:00
ActionResultTests.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
ActivatorTests.cs Fix #2151 - Part 4 remove [Activate] support from controllers. 2015-05-21 22:57:56 -07:00
AntiForgeryTestHelper.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
AntiForgeryTests.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
ApiExplorerTest.cs Fix #2378 - Fully expand models in ApiExplorer 2015-05-08 11:53:38 -07:00
ApplicationModelTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
BasicTests.cs [Fixes #2409] Return EmptyResult for void actions 2015-06-11 11:51:51 -07:00
BestEffortLinkGenerationTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
CompilationOptionsTests.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
CompositeViewEngineTests.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
ConsumesAttributeTests.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
ContentNegotiationTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
ControllerDiscoveryConventionTests.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
ControllerFromServicesTests.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
CorsMiddlewareTests.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
CorsTests.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
CustomRouteTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
CustomUrlHelperTests.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
DefaultOrderTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
DefaultValuesTest.cs Fix #2414 Part 2 - Add [DefaultValue(...)] support to the invoker for 2015-05-14 13:58:02 -07:00
DependencyResolverTests.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
DirectivesTest.cs Rename _GlobalImport.cshtml files to _ViewImports.cshtml 2015-05-21 12:27:08 -07:00
ErrorPageTests.cs Add support for generating baseline output files while testing 2015-06-01 13:13:39 -07:00
ExceptionInfo.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
FileResultTests.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
FiltersTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
FlushPointTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
FormatFilterTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
HtmlGenerationTest.cs Rename `MvcTagHelpersWebSite` to `HtmlGenerationsWebSite` 2015-06-05 20:30:17 -07:00
HtmlHelperOptionsTest.cs Use stable locale when testing date/time formats 2015-06-05 14:25:51 -07:00
HttpResponseMessageExceptions.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
InlineConstraintTests.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
InputFormatterTests.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
InputObjectValidationTests.cs Add `ModelBindingResult.IsFatalError` and make body binding more consistent 2015-06-18 16:19:01 -07:00
JsonOutputFormatterTests.cs Adding some deserialization to a test for SerializableError 2015-05-14 15:38:50 -07:00
JsonPatchTest.cs Fix 2224: [Jsonpatch]Added tests for custom converters on properties 2015-05-14 17:18:42 -07:00
JsonResultTest.cs [Fixes #2506] Added overload to Controller.Json to accept JsonSerializerSettings 2015-05-11 12:36:45 -07:00
LinkGenerationTests.cs Add support for generating baseline output files while testing 2015-06-01 13:13:39 -07:00
LocalizationTest.cs Added configurable option for LanguageViewLocationExpander to use subfolder or suffix 2015-06-08 12:07:49 -07:00
Microsoft.AspNet.Mvc.FunctionalTests.xproj Add more details to ModelAttributes 2015-04-17 17:35:20 -07:00
ModelBindingBindingBehaviorTest.cs Address #2526; remove use of a required validator when validating `[BindRequired]` 2015-06-05 16:56:05 -07:00
ModelBindingDataMemberRequiredTest.cs Address #2526; remove use of a required validator when validating `[BindRequired]` 2015-06-05 16:56:05 -07:00
ModelBindingFromFormTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
ModelBindingFromHeaderTest.cs Fix #2407 - Part 1 - Make model binding behavior for [Required] compatible 2015-05-19 15:57:56 -07:00
ModelBindingFromQueryTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
ModelBindingFromRouteTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
ModelBindingModelBinderAttributeTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
ModelBindingTest.cs Add `ModelBindingResult.IsFatalError` and make body binding more consistent 2015-06-18 16:19:01 -07:00
ModelMetadataAttributeTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
MvcSampleTests.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
MvcStartupTests.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
OutputFormatterTest.cs [Fixes #2409] Return EmptyResult for void actions 2015-06-11 11:51:51 -07:00
PrecompilationTest.cs Fix #2407 - Add back the implicit [Required] for value types 2015-05-21 17:52:25 -07:00
RazorCompilerCacheTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
RazorEmbeddedViewsTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
RazorFileSystemCaseSensitivityTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
RazorPageExecutionInstrumentationTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
RazorViewLocationSpecificationTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
RemoteAttributeValidationTest.cs Add support for generating baseline output files while testing 2015-06-01 13:13:39 -07:00
RequestServicesTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
RespectBrowserAcceptHeaderTests.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
ResponseCacheTest.cs Updated the ResponseCacheFilter class to store a reference to the CacheProfile passed into the contructor 2015-05-29 12:28:14 -07:00
RoundTripTests.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
RouteDataTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
RoutingLowercaseUrlTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
RoutingTests.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
SerializableErrorTests.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
StreamOutputFormatterTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
TagHelperSampleTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
TagHelpersTest.cs Add support for generating baseline output files while testing 2015-06-01 13:13:39 -07:00
TempDataTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
TestApplicationEnvironment.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
TestHelper.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
TryValidateModelTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
ValueProviderTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
VersioningTests.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
ViewComponentTests.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
ViewEngineTests.cs Added LanguageViewLocationExpander into framework and removed it from samples 2015-06-04 14:06:08 -07:00
WebApiCompatShimActionResultTest.cs [Fixes #2545] RedirectToRouteResult doesn't use RouteName property when calculating destination URL 2015-05-13 12:35:25 -07:00
WebApiCompatShimActionSelectionTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
WebApiCompatShimBasicTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
WebApiCompatShimParameterBindingTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
XmlDataContractSerializerFormattersWrappingTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
XmlDataContractSerializerInputFormatterTest.cs Add `ModelBindingResult.IsFatalError` and make body binding more consistent 2015-06-18 16:19:01 -07:00
XmlOutputFormatterTests.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
XmlSerializerFormattersWrappingTest.cs Update LICENSE.txt and license header on files. 2015-05-01 13:55:25 -07:00
XmlSerializerInputFormatterTests.cs Add `ModelBindingResult.IsFatalError` and make body binding more consistent 2015-06-18 16:19:01 -07:00
project.json Added configurable option for LanguageViewLocationExpander to use subfolder or suffix 2015-06-08 12:07:49 -07:00