8 instantiations of TestController
Microsoft.AspNetCore.Mvc.Core.Test (8)
Infrastructure\ControllerActionInvokerTest.cs (8)
52controller: new TestController(), 90controller: new TestController(), 128controller: new TestController(), 178controller: new TestController(), 1425_ => new TestController(), 1567new TestController(), 1637new TestController(), 1668return CreateInvoker(filters, actionDescriptor, new TestController(), arguments);
63 references to TestController
Microsoft.AspNetCore.Mvc.Core.Test (63)
Filters\MiddlewareFilterTest.cs (5)
243actionDescriptor.MethodInfo = typeof(ControllerActionInvokerTest.TestController).GetMethod( 244nameof(ControllerActionInvokerTest.TestController.ThrowingActionMethod)); 248actionDescriptor.MethodInfo = typeof(ControllerActionInvokerTest.TestController).GetMethod( 249nameof(ControllerActionInvokerTest.TestController.ActionMethod)); 251actionDescriptor.ControllerTypeInfo = typeof(ControllerActionInvokerTest.TestController).GetTypeInfo();
Infrastructure\ControllerActionInvokerTest.cs (58)
40actionDescriptor.MethodInfo = typeof(TestController).GetMethod(nameof(TestController.ActionMethod)); 41actionDescriptor.ControllerTypeInfo = typeof(TestController).GetTypeInfo(); 81actionDescriptor.MethodInfo = typeof(TestController).GetMethod(nameof(TestController.ActionMethod)); 82actionDescriptor.ControllerTypeInfo = typeof(TestController).GetTypeInfo(); 112actionDescriptor.MethodInfo = typeof(TestController).GetMethod(nameof(TestController.ActionMethod)); 113actionDescriptor.ControllerTypeInfo = typeof(TestController).GetTypeInfo(); 161actionDescriptor.MethodInfo = typeof(TestController).GetMethod(nameof(TestController.ActionMethod)); 162actionDescriptor.ControllerTypeInfo = typeof(TestController).GetTypeInfo(); 868var invoker = CreateInvoker(new[] { filter.Object }, nameof(TestController.TaskAction), actionParameters); 893var invoker = CreateInvoker(new[] { filter.Object }, nameof(TestController.TaskValueTypeAction), actionParameters); 919var invoker = CreateInvoker(new[] { filter.Object }, nameof(TestController.TaskActionWithException), actionParameters); 942var invoker = CreateInvoker(new[] { filter.Object }, nameof(TestController.TaskActionWithExceptionWithoutAsync), actionParameters); 965var invoker = CreateInvoker(new[] { filter.Object }, nameof(TestController.TaskActionThrowAfterAwait), actionParameters); 988var invoker = CreateInvoker(new[] { filter.Object }, nameof(TestController.Echo), new Dictionary<string, object>() { { "input", inputString } }); 1014nameof(TestController.EchoWithException), 1037nameof(TestController.EchoWithDefaultValue), 1064nameof(TestController.EchoWithDefaultValue), 1090nameof(TestController.EchoWithDefaultValueAndAttribute), 1117nameof(TestController.EchoWithDefaultValueAndAttribute), 1146nameof(TestController.TaskActionWithCustomTaskReturnType), 1174nameof(TestController.TaskActionWithCustomTaskOfTReturnType), 1202var invoker = CreateInvoker(new[] { filter.Object }, nameof(TestController.UnwrappedTask), actionParameters); 1226nameof(TestController.AsyncActionMethodReturningActionResultWithTaskOfObjectAsReturnType), 1252nameof(TestController.ActionMethodReturningActionResultWithObjectAsReturnType), 1283nameof(TestController.TaskValueTypeAction), 1295[InlineData(nameof(TestController.AsyncActionMethodWithTestActionResult))] 1296[InlineData(nameof(TestController.ActionMethodWithTestActionResult))] 1342nameof(TestController.TaskValueTypeAction), 1351[InlineData(nameof(TestController.ActionMethodWithNullActionResult), typeof(IActionResult))] 1352[InlineData(nameof(TestController.TestActionMethodWithNullActionResult), typeof(TestActionResult))] 1353[InlineData(nameof(TestController.AsyncActionMethodWithNullActionResult), typeof(IActionResult))] 1354[InlineData(nameof(TestController.AsyncActionMethodWithNullTestActionResult), typeof(TestActionResult))] 1385ControllerTypeInfo = typeof(TestController).GetTypeInfo(), 1387MethodInfo = typeof(TestController).GetTypeInfo() 1463var invoker = CreateInvoker(new[] { filter.Object }, nameof(TestController.ActionReturningConvertibleToActionResult), actionParameters); 1488var invoker = CreateInvoker(new[] { filter.Object }, nameof(TestController.ActionReturningConvertibleToActionResultAsync), actionParameters); 1512var invoker = CreateInvoker(new[] { filter.Object }, nameof(TestController.ActionReturningConvertibleAsObject), actionParameters); 1536var invoker = CreateInvoker(new[] { filter.Object }, nameof(TestController.ConvertibleToActionResultReturningNull), actionParameters); 1557ControllerTypeInfo = typeof(TestController).GetTypeInfo(), 1561MethodInfo = typeof(TestController).GetMethod(nameof(TestController.ActionMethod)), 1575var actionSignature = $"{typeof(IActionResult).FullName} {nameof(TestController.ActionMethod)}()"; 1576var controllerName = $"{typeof(ControllerActionInvokerTest).FullName}+{nameof(TestController)} ({typeof(ControllerActionInvokerTest).Assembly.GetName().Name})"; 1577var actionName = $"{typeof(ControllerActionInvokerTest).FullName}+{nameof(TestController)}.{nameof(TestController.ActionMethod)} ({typeof(ControllerActionInvokerTest).Assembly.GetName().Name})"; 1607ControllerTypeInfo = typeof(TestController).GetTypeInfo(), 1615actionDescriptor.MethodInfo = typeof(TestController).GetMethod(nameof(TestController.ActionMethod)); 1623actionDescriptor.MethodInfo = typeof(TestController).GetMethod(nameof(TestController.ThrowingActionMethod)); 1631actionDescriptor.MethodInfo = typeof(TestController).GetMethod(nameof(TestController.ActionMethod)); 1649ControllerTypeInfo = typeof(TestController).GetTypeInfo(), 1655var method = typeof(TestController).GetTypeInfo().GetMethod(methodName);