66 references to Result
Microsoft.AspNetCore.Mvc.Core (7)
ApplicationModels\ApiBehaviorApplicationModelProvider.cs (1)
71
foreach (var controller in context.
Result
.Controllers)
ApplicationModels\ApplicationModelFactory.cs (2)
49
ApplicationModelConventions.ApplyConventions(context.
Result
, _conventions);
51
return context.
Result
;
ApplicationModels\AuthorizationApplicationModelProvider.cs (1)
42
foreach (var controllerModel in context.
Result
.Controllers)
ApplicationModels\DefaultApplicationModelProvider.cs (3)
48
context.
Result
.Filters.Add(filter);
59
context.
Result
.Controllers.Add(controllerModel);
60
controllerModel.Application = context.
Result
;
Microsoft.AspNetCore.Mvc.Core.Test (26)
ApplicationModels\ApiBehaviorApplicationModelProviderTest.cs (3)
31
context.
Result
.Controllers.Add(controllerModel);
66
context.
Result
.Controllers.Add(controllerModel);
109
context.
Result
.Controllers.Add(controllerModel);
ApplicationModels\AuthorizationApplicationModelProviderTest.cs (7)
32
var controller = Assert.Single(context.
Result
.Controllers);
50
var controller = Assert.Single(context.
Result
.Controllers);
68
var controller = Assert.Single(context.
Result
.Controllers);
89
var controller = Assert.Single(context.
Result
.Controllers);
115
var controller = Assert.Single(context.
Result
.Controllers);
187
var controller = Assert.Single(context.
Result
.Controllers);
199
var controller = Assert.Single(context.
Result
.Controllers);
ApplicationModels\ConsumesConstraintForFormFileParameterConventionTest.cs (1)
72
var controller = Assert.Single(context.
Result
.Controllers);
ApplicationModels\DefaultApplicationModelProviderTest.cs (13)
39
Assert.Equal(options.Filters.ToArray(), context.
Result
.Filters);
55
context.
Result
.Controllers.OrderBy(c => c.ControllerType.Name),
75
var controllerModel = Assert.Single(context.
Result
.Controllers);
127
var controllerModel = Assert.Single(context.
Result
.Controllers);
179
var controllerModel = Assert.Single(context.
Result
.Controllers);
223
var controllerModel = Assert.Single(context.
Result
.Controllers);
271
var controllerModel = Assert.Single(context.
Result
.Controllers);
299
var controllerModel = Assert.Single(context.
Result
.Controllers);
325
var controllerModel = Assert.Single(context.
Result
.Controllers);
345
var controllerModel = Assert.Single(context.
Result
.Controllers);
365
var controllerModel = Assert.Single(context.
Result
.Controllers);
1258
var model = Assert.Single(context.
Result
.Controllers);
1274
var model = Assert.Single(context.
Result
.Controllers);
ApplicationModels\InferParameterBindingInfoConventionTest.cs (2)
518
var controllerModel = Assert.Single(context.
Result
.Controllers);
927
var controller = Assert.Single(context.
Result
.Controllers);
Microsoft.AspNetCore.Mvc.Cors (3)
CorsApplicationModelProvider.cs (3)
42
var isCorsEnabledGlobally = context.
Result
.Filters.OfType<ICorsAuthorizationFilter>().Any() ||
43
context.
Result
.Filters.OfType<CorsAuthorizationFilterFactory>().Any();
45
foreach (var controllerModel in context.
Result
.Controllers)
Microsoft.AspNetCore.Mvc.Cors.Test (13)
CorsApplicationModelProviderTest.cs (13)
33
var model = Assert.Single(context.
Result
.Controllers);
52
var model = Assert.Single(context.
Result
.Controllers);
71
var controller = Assert.Single(context.
Result
.Controllers);
89
var controller = Assert.Single(context.
Result
.Controllers);
108
var controller = Assert.Single(context.
Result
.Controllers);
127
var controller = Assert.Single(context.
Result
.Controllers);
141
context.
Result
.Filters.Add(
148
var model = Assert.Single(context.
Result
.Controllers);
161
context.
Result
.Filters.Add(new DisableCorsAuthorizationFilter());
167
var model = Assert.Single(context.
Result
.Controllers);
180
context.
Result
.Filters.Add(new CustomCorsFilterAttribute());
186
var model = Assert.Single(context.
Result
.Controllers);
204
var model = Assert.Single(context.
Result
.Controllers);
Microsoft.AspNetCore.Mvc.IntegrationTests (4)
AuthorizeFilterIntegrationTest.cs (4)
35
var controller = Assert.Single(applicationModelProviderContext.
Result
.Controllers);
63
var controller = Assert.Single(applicationModelProviderContext.
Result
.Controllers);
94
var controller = Assert.Single(applicationModelProviderContext.
Result
.Controllers);
130
var controller = Assert.Single(applicationModelProviderContext.
Result
.Controllers);
Microsoft.AspNetCore.Mvc.ViewFeatures (3)
Filters\AntiforgeryApplicationModelProvider.cs (1)
28
foreach (var controllerModel in context.
Result
.Controllers)
Filters\TempDataApplicationModelProvider.cs (1)
32
foreach (var controllerModel in context.
Result
.Controllers)
Filters\ViewDataAttributeApplicationModelProvider.cs (1)
24
foreach (var controllerModel in context.
Result
.Controllers)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (10)
Filters\AntiforgeryApplicationModelProviderTest.cs (4)
26
var controller = Assert.Single(context.
Result
.Controllers);
60
var controller = Assert.Single(context.
Result
.Controllers);
87
var controller = Assert.Single(context.
Result
.Controllers);
111
var controller = Assert.Single(context.
Result
.Controllers);
Filters\TempDataApplicationModelProviderTest.cs (3)
27
var controller = Assert.Single(context.
Result
.Controllers);
75
var controller = context.
Result
.Controllers.SingleOrDefault();
96
var controller = context.
Result
.Controllers.SingleOrDefault();
Filters\ViewDataAttributeApplicationModelProviderTest.cs (3)
25
var controller = Assert.Single(context.
Result
.Controllers);
41
var controller = Assert.Single(context.
Result
.Controllers);
55
var controller = context.
Result
.Controllers.SingleOrDefault();