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