aspnetcore/test/Microsoft.AspNet.Mvc.Core.Test
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
..
ActionResults Replacing ViewResultBase with ViewExecutor 2014-10-22 08:47:22 -07:00
AntiXsrf
ApplicationModel Fix for #1442 - Find better names for ApiExplorerProperties 2014-10-28 13:03:19 -07:00
Description
Filters Adding functional tests for Filters. 2014-10-31 08:36:31 -07:00
Formatters Replacing ViewResultBase with ViewExecutor 2014-10-22 08:47:22 -07:00
Internal Change TagBuilder Attributes and HTML Helper dependencies to be case insensitive. 2014-10-26 13:15:09 -07:00
Logging
OptionDescriptors
ParameterBinding
Properties
Rendering Adjust tests to handle new `ViewDataDictionary` invariants 2014-10-29 19:18:59 -07:00
Routing
TestFiles
Utils
ViewComponents Fix for #1052 - ViewComponents should support fully qualified names 2014-10-29 17:34:01 -07:00
ActionExecutorTests.cs TODO removal part 1 - ActionExecutorTests 2014-10-28 12:54:14 -07:00
BodyModelBinderTests.cs
ControllerActionDescriptorProviderTests.cs Rename GlobalModel -> ApplicationModel 2014-10-23 16:03:55 -07:00
ControllerActionInvokerTest.cs
ControllerTests.cs
CopyOnWriteDictionaryTest.cs
DefaultActionSelectorSelectAsyncValuesTest.cs
DefaultActionSelectorTests.cs Rename GlobalModel -> ApplicationModel 2014-10-23 16:03:55 -07:00
DefaultAssemblyProviderTests.cs
DefaultControllerActivatorTest.cs Adjust tests to handle new `ViewDataDictionary` invariants 2014-10-29 19:18:59 -07:00
DefaultControllerFactoryTest.cs
DefaultInputFormatterSelectorTests.cs
DefaultViewComponentActivatorTests.cs Adjust tests to handle new `ViewDataDictionary` invariants 2014-10-29 19:18:59 -07:00
HttpMethodProviderAttributesTests.cs
InputObjectBindingTests.cs
JsonResultTest.cs Fix #1370 - Always use the provided formatter in JsonResult 2014-10-31 14:30:31 -07:00
KnownRouteValueConstraintTests.cs
MediaTypeWithQualityHeaderValueTests.cs
Microsoft.AspNet.Mvc.Core.Test.kproj
MockMvcOptionsAccessor.cs
MvcOptionsTests.cs
MvcRouteHandlerTests.cs
PropertyHelperTest.cs
RequireHttpsAttributeTests.cs
RouteDataActionConstraintTest.cs
RouteTemplateProviderAttributesTests.cs
StaticAssemblyProvider.cs Refactoring the ControllerActionDescriptorProvider 2014-10-23 12:25:25 -07:00
StaticControllerModelBuilder.cs Rename GlobalModel -> ApplicationModel 2014-10-23 16:03:55 -07:00
TestController.cs
TestGlobalFilterProvider.cs
TypeHelperTest.cs
UrlHelperTest.cs
ViewComponentTests.cs Adjust tests to handle new `ViewDataDictionary` invariants 2014-10-29 19:18:59 -07:00
ViewDataDictionaryOfTModelTest.cs More `ViewDataDictionary` tests 2014-10-29 19:19:09 -07:00
ViewDataDictionaryTest.cs More `ViewDataDictionary` tests 2014-10-29 19:19:09 -07:00
project.json