aspnetcore/test/Microsoft.AspNet.Mvc.Functi...
Ryan Nowak 105c99cbf2 Fix #1370 - Always use the provided formatter in JsonResult
The change here is to always use the provided formatter, instead of using
it as a fallback. This is much less surprising for users.

There are some other subtle changes here and cleanup of the tests, as well
as documentation additions.

The primary change is that we still want to run 'select' on a formatter
even if it's the only one. This allows us to choose a content type based
on the accept header.

In the case of a user-provided formatter, we'll try to honor the best
possible combination of Accept and specified ContentTypes (specified
ContentTypes win if there's a conflict). If nothing works, we'll still run
the user-provided formatter and let it decide what to do.

In the case of the default (formatters from options) we do conneg, and if
there's a conflict, fall back to a global (from services)
JsonOutputFormatter - we let it decide what to do.

This should leave us with a defined and tested behavior for all cases.
2014-10-31 14:30:31 -07:00
..
compiler/resources Adding support for inheriting tag helpers from _ViewStart files 2014-10-16 07:55:37 -07:00
ActivatorTests.cs
AntiForgeryTestHelper.cs
AntiForgeryTests.cs
ApiExplorerTest.cs [Fixes #885] API Explorer: Link Generation 2014-10-13 15:20:38 -07:00
ApplicationModelTest.cs
BasicTests.cs Use DefaultOrder in MvcOptionsSetup 2014-10-15 17:12:52 -07:00
CompositeViewEngineTests.cs
ConnegTests.cs [Fixes #1216] Provide a property on JsonOutputFormatter to set serializer settings 2014-10-15 09:27:09 -07:00
CustomUrlHelperTests.cs Updating functional tests to restore CallContextServiceLocator.Locator.Service on test finish 2014-10-10 11:54:00 -07:00
DefaultOrderTest.cs Use DefaultOrder in MvcOptionsSetup 2014-10-15 17:12:52 -07:00
DependencyResolverTests.cs
DirectivesTest.cs
FileResultTests.cs
FiltersTest.cs Adding functional tests for Filters. 2014-10-31 08:36:31 -07:00
FlushPointTest.cs
InlineConstraintTests.cs Replace calls to GetService<T> with GetRequiredService<T> 2014-10-16 14:51:41 -07:00
InputFormatterTests.cs
InputObjectValidationTests.cs Issue #1206 - DefaultBodyModelValidator throws if get accessor throws. 2014-10-16 16:09:30 -07:00
JsonOutputFormatterTests.cs [Fixes #1216] Provide a property on JsonOutputFormatter to set serializer settings 2014-10-15 09:27:09 -07:00
JsonResultTest.cs Fix #1370 - Always use the provided formatter in JsonResult 2014-10-31 14:30:31 -07:00
LinkGenerationTests.cs [Issue #1133] RedirectToActionResult and UrlHelper should use HostString, PathString, etc. To build Urls. 2014-10-14 16:12:29 -07:00
Microsoft.AspNet.Mvc.FunctionalTests.kproj
ModelBindingTests.cs Renaming IBinderMarker and friends to some more descriptive names. 2014-10-17 20:32:03 -07:00
MvcSampleTests.cs Updating functional tests to restore CallContextServiceLocator.Locator.Service on test finish 2014-10-10 11:54:00 -07:00
MvcStartupTests.cs React to options and hosting changes 2014-10-14 19:20:28 -07:00
NullLoggerFactory.cs updating ILogger, see aspnet/Logging#3 2014-10-14 10:25:01 -07:00
OutputFormattterTests.cs
PrecompilationTest.cs Revert "Revert "Added a functional test for view precompilation"" 2014-10-30 14:38:44 -07:00
RazorInstrumentationTests.cs DecorateWriter does not get called for partial views rendered via 2014-10-12 14:24:29 -07:00
ResourceHelpers.cs
RoundTripTests.cs Adding functional tests to verify round tripping of names generated by 2014-10-23 10:12:02 -07:00
RoutingTests.cs
TagHelpersTest.cs Adding support for inheriting tag helpers from _ViewStart files 2014-10-16 07:55:37 -07:00
TestApplicationEnvironment.cs
TestAssemblyProvider.cs Rename IControllerAssemblyProvider to IAssemblyProvider and follow through resultant renames 2014-10-11 13:26:07 -07:00
TestConfigurationProvider.cs
TestHelper.cs Replace calls to GetService<T> with GetRequiredService<T> 2014-10-16 14:51:41 -07:00
ValueProviderTests.cs Issue #220 - Flags enum does not bind 2014-10-22 13:55:28 -07:00
VersioningTests.cs
ViewComponentTests.cs Fix for #1052 - ViewComponents should support fully qualified names 2014-10-29 17:34:01 -07:00
ViewEngineTests.cs Layout property needs to be propogated between nested view starts 2014-10-15 18:54:02 -07:00
WebApiCompatShimActionResultTest.cs Fix #1287 - Port WebAPI parameter binding behavior 2014-10-17 16:51:48 -07:00
WebApiCompatShimActionSelectionTest.cs [Fixes #1332] Port IContentNegotiator to WebAPI shim for CoreCLR support 2014-10-16 17:22:47 -07:00
WebApiCompatShimBasicTest.cs [Fixes #1332] Port IContentNegotiator to WebAPI shim for CoreCLR support 2014-10-16 17:22:47 -07:00
WebApiCompatShimParameterBindingTest.cs Fix #1287 - Port WebAPI parameter binding behavior 2014-10-17 16:51:48 -07:00
XmlOutputFormatterTests.cs
XmlSerializerInputFormatterTests.cs
project.json Adding functional tests for Filters. 2014-10-31 08:36:31 -07:00