31 references to ControllerModel
Microsoft.AspNetCore.Mvc.Core (1)
ApplicationModels\DefaultApplicationModelProvider.cs (1)
159var controllerModel = new ControllerModel(typeInfo, attributes);
Microsoft.AspNetCore.Mvc.Core.Test (29)
ApplicationModels\ActionModelTest.cs (1)
73action.Controller = new ControllerModel
ApplicationModels\ApiBehaviorApplicationModelProviderTest.cs (3)
22var controllerModel = new ControllerModel(typeof(TestApiController).GetTypeInfo(), new[] { new ApiControllerAttribute() }); 44var controllerModel = new ControllerModel(typeof(TestApiController).GetTypeInfo(), new[] { new ApiControllerAttribute() }) 87var controllerModel = new ControllerModel(typeof(TestApiController).GetTypeInfo(), new[] { new ApiControllerAttribute() })
ApplicationModels\ApiConventionApplicationModelConventionTest.cs (2)
66var controller = new ControllerModel(typeof(object).GetTypeInfo(), Array.Empty<object>()); 169var controllerModel = new ControllerModel(typeof(TestController).GetTypeInfo(), controllerAttributes);
ApplicationModels\ApiVisibilityConventionTest.cs (1)
58Controller = new ControllerModel(typeof(object).GetTypeInfo(), new object[0]),
ApplicationModels\ControllerActionDescriptorBuilderTest.cs (4)
17var controller = new ControllerModel( 66var controller = new ControllerModel(typeof(TestController).GetTypeInfo(), 91var controller = new ControllerModel(typeof(TestController).GetTypeInfo(), 117var controller = new ControllerModel(typeof(TestController).GetTypeInfo(),
ApplicationModels\ControllerActionDescriptorProviderTests.cs (1)
1155var controller = new ControllerModel(typeof(ConventionsController).GetTypeInfo(),
ApplicationModels\ControllerModelTest.cs (2)
17var controller = new ControllerModel(typeof(TestController).GetTypeInfo(), 64var controller = new ControllerModel(
ApplicationModels\PropertyModelTest.cs (1)
18propertyModel.Controller = new ControllerModel(typeof(TestController).GetTypeInfo(), new List<object>());
DependencyInjection\ApplicationModelConventionExtensionsTest.cs (14)
18var controllerModel = new ControllerModel(controllerType.GetTypeInfo(), Array.Empty<object>()); 47var controllerModel1 = new ControllerModel(controllerType1, Array.Empty<object>()) 57var controllerModel2 = new ControllerModel(controllerType2, Array.Empty<object>()) 95var controllerModel1 = new ControllerModel(controllerType1, Array.Empty<object>()) 115var controllerModel2 = new ControllerModel(controllerType2, Array.Empty<object>()) 153app.Controllers.Add(new ControllerModel(typeof(HelloController).GetTypeInfo(), Array.Empty<object>())); 154app.Controllers.Add(new ControllerModel(typeof(WorldController).GetTypeInfo(), Array.Empty<object>())); 194new ControllerModel(typeof(HelloController).GetTypeInfo(), Array.Empty<object>()) 214new ControllerModel(typeof(HelloController).GetTypeInfo(), new[] { controllerModelConvention }) 231var controllerModel = new ControllerModel(controllerType, Array.Empty<object>()) 256var controllerModel = new ControllerModel(controllerType, Array.Empty<object>()) 282var controllerModel = new ControllerModel(controllerType, Array.Empty<object>()) 305var controllerModel = new ControllerModel(controllerType, Array.Empty<object>()) 338var controllerModel = new ControllerModel(controllerType, Array.Empty<object>())
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
Filters\AntiforgeryApplicationModelProviderTest.cs (1)
164var controllerModel = new ControllerModel(typeof(TestController).GetTypeInfo(), controllerAttributes);