Updated test to fix build break

This commit is contained in:
Kiran Challa 2016-04-03 08:01:15 -07:00
parent 4cd3012886
commit cda1307848
1 changed files with 2 additions and 2 deletions

View File

@ -780,12 +780,12 @@ namespace Microsoft.AspNetCore.Mvc.Internal
{
// Arrange
var controllerTypeInfo = typeof(UserController).GetTypeInfo();
var controllerTypeProvider = new StaticControllerTypeProvider(new[] { controllerTypeInfo });
var manager = GetApplicationManager(new[] { controllerTypeInfo });
var options = new TestOptionsManager<MvcOptions>();
options.Value.Conventions.Add(new TestRoutingConvention());
var modelProvider = new DefaultApplicationModelProvider(options);
var provider = new ControllerActionDescriptorProvider(
controllerTypeProvider,
manager,
new[] { modelProvider },
options);
var assemblyName = controllerTypeInfo.Assembly.GetName().Name;