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