aspnetcore/test/Microsoft.AspNet.Mvc.Core.Test
Ryan Nowak 8ce069f56a [Fixes #393] [Design] Update ViewComponent result apis to be consistent with Controller
1. Updated ViewComponent to exposes similar properties to the existing ones in controller where
appropiate. We've left out Resolver for being a bad pattern (just inject the dependency on the constructor
or use Context.RequestServices to access it if needed) and Response as although available through the Context
property, it shouldn't be used/modified in a ViewComponent.

2. Updated ViewViewComponentResult to follow a similar pattern as ViewResult where the constructor is
parameterless and elements like ViewEngine are resolved during execution if the user does not set the
associated property on the object.

3. Updated ExecuteAsync in JsonViewComponentResult to remove the unnecessary pragma and async keyword from the
signature and to use Task.FromResult(true) instead.

4. Cleaned up ViewViewComponentResult tests.
2014-11-26 15:56:06 -08:00
..
ActionResults Add missing license headers 2014-11-20 22:54:05 -08:00
AntiXsrf matched classnames with filenames 2014-11-25 11:21:17 -08:00
ApplicationModel Apply VS' FormatDocument and RemoveAndSort to all *.cs files 2014-11-20 21:15:46 -08:00
Description
Filters Apply VS' FormatDocument and RemoveAndSort to all *.cs files 2014-11-20 21:15:46 -08:00
Formatters matched classnames with filenames 2014-11-25 11:21:17 -08:00
Internal Apply VS' FormatDocument and RemoveAndSort to all *.cs files 2014-11-20 21:15:46 -08:00
Logging Apply VS' FormatDocument and RemoveAndSort to all *.cs files 2014-11-20 21:15:46 -08:00
OptionDescriptors matched classnames with filenames 2014-11-25 11:21:17 -08:00
ParameterBinding Adding support for property level binding using IBinderMetadata and enabling FromXXX attributes to be decorated on properties. 2014-11-24 21:33:02 -08:00
Properties
Rendering matched classnames with filenames 2014-11-25 11:21:17 -08:00
Routing matched classnames with filenames 2014-11-25 11:21:17 -08:00
TestFiles
Utils
ViewComponents [Fixes #393] [Design] Update ViewComponent result apis to be consistent with Controller 2014-11-26 15:56:06 -08:00
ActionExecutorTests.cs
BodyModelBinderTests.cs Adding support for property level binding using IBinderMetadata and enabling FromXXX attributes to be decorated on properties. 2014-11-24 21:33:02 -08:00
ControllerActionDescriptorProviderTests.cs Apply VS' FormatDocument and RemoveAndSort to all *.cs files 2014-11-20 21:15:46 -08:00
ControllerActionInvokerTest.cs Apply VS' FormatDocument and RemoveAndSort to all *.cs files 2014-11-20 21:15:46 -08:00
ControllerTests.cs Apply VS' FormatDocument and RemoveAndSort to all *.cs files 2014-11-20 21:15:46 -08:00
CopyOnWriteDictionaryTest.cs
DefaultActionSelectorSelectAsyncValuesTest.cs
DefaultActionSelectorTests.cs Apply VS' FormatDocument and RemoveAndSort to all *.cs files 2014-11-20 21:15:46 -08:00
DefaultAssemblyProviderTests.cs
DefaultControllerActivatorTest.cs
DefaultControllerFactoryTest.cs
DefaultInputFormatterSelectorTests.cs Apply VS' FormatDocument and RemoveAndSort to all *.cs files 2014-11-20 21:15:46 -08:00
DefaultViewComponentActivatorTests.cs [Fixes #393] [Design] Update ViewComponent result apis to be consistent with Controller 2014-11-26 15:56:06 -08:00
HttpMethodProviderAttributesTests.cs
InputObjectBindingTests.cs Apply VS' FormatDocument and RemoveAndSort to all *.cs files 2014-11-20 21:15:46 -08:00
JsonResultTest.cs Apply VS' FormatDocument and RemoveAndSort to all *.cs files 2014-11-20 21:15:46 -08:00
KnownRouteValueConstraintTests.cs Apply VS' FormatDocument and RemoveAndSort to all *.cs files 2014-11-20 21:15:46 -08:00
MediaTypeWithQualityHeaderValueTests.cs Apply VS' FormatDocument and RemoveAndSort to all *.cs files 2014-11-20 21:15:46 -08:00
Microsoft.AspNet.Mvc.Core.Test.kproj Add schema version to kproj files 2014-11-25 10:57:58 -08:00
MockMvcOptionsAccessor.cs Apply VS' FormatDocument and RemoveAndSort to all *.cs files 2014-11-20 21:15:46 -08:00
MvcOptionsTests.cs
MvcRouteHandlerTests.cs Replacing Assert.Equal(null, Assert.Equal(true \ false etc with 2014-11-21 08:28:55 -08:00
PropertyHelperTest.cs
RequireHttpsAttributeTests.cs Apply VS' FormatDocument and RemoveAndSort to all *.cs files 2014-11-20 21:15:46 -08:00
RouteDataActionConstraintTest.cs Add missing license headers 2014-11-20 22:54:05 -08:00
RouteTemplateProviderAttributesTest.cs matched classnames with filenames 2014-11-25 11:21:17 -08:00
StaticAssemblyProvider.cs
StaticControllerModelBuilder.cs
TestController.cs Apply VS' FormatDocument and RemoveAndSort to all *.cs files 2014-11-20 21:15:46 -08:00
TestGlobalFilterProvider.cs
TypeHelperTest.cs Apply VS' FormatDocument and RemoveAndSort to all *.cs files 2014-11-20 21:15:46 -08:00
UrlHelperTest.cs Apply VS' FormatDocument and RemoveAndSort to all *.cs files 2014-11-20 21:15:46 -08:00
ViewComponentTests.cs [Fixes #393] [Design] Update ViewComponent result apis to be consistent with Controller 2014-11-26 15:56:06 -08:00
ViewDataDictionaryOfTModelTest.cs
ViewDataDictionaryTest.cs
project.json