aspnetcore/test/WebSites
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
..
ActivatorWebSite
AddServicesWebSite
AntiForgeryWebSite Change TagBuilder Attributes and HTML Helper dependencies to be case insensitive. 2014-10-26 13:15:09 -07:00
ApiExplorerWebSite Fix for #1442 - Find better names for ApiExplorerProperties 2014-10-28 13:03:19 -07:00
ApplicationModelWebSite Rename GlobalModel -> ApplicationModel 2014-10-23 16:03:55 -07:00
AutofacWebSite
BasicWebSite Fix #1370 - Always use the provided formatter in JsonResult 2014-10-31 14:30:31 -07:00
CompositeViewEngine
ConnegWebSite
FilesWebSite
FiltersWebSite Adding functional tests for Filters. 2014-10-31 08:36:31 -07:00
FormatterWebSite Removing BodyParameterInfo and ParameterBindingInfo 2014-10-17 20:47:20 -07:00
InlineConstraintsWebSite
Microsoft.AspNet.Mvc.TestConfiguration Fix #1287 - Port WebAPI parameter binding behavior 2014-10-17 16:51:48 -07:00
ModelBindingWebSite Adding functional tests to verify round tripping of names generated by 2014-10-23 10:12:02 -07:00
PrecompilationWebSite Revert "Revert "Added a functional test for view precompilation"" 2014-10-30 14:38:44 -07:00
RazorInstrumentationWebsite
RazorWebSite
RoutingWebSite
TagHelpersWebSite
UrlHelperWebSite
ValueProvidersSite Issue #220 - Flags enum does not bind 2014-10-22 13:55:28 -07:00
VersioningWebSite
ViewComponentWebSite Fix for #1052 - ViewComponents should support fully qualified names 2014-10-29 17:34:01 -07:00
WebApiCompatShimWebSite Fix #1287 - Port WebAPI parameter binding behavior 2014-10-17 16:51:48 -07:00
XmlSerializerWebSite