12 instantiations of AcceptedAtActionResult
Microsoft.AspNetCore.Mvc.Core (1)
ControllerBase.cs (1)
2265=> new AcceptedAtActionResult(actionName, controllerName, routeValues, value);
Microsoft.AspNetCore.Mvc.Core.Test (11)
AcceptedAtActionResultTests.cs (11)
27var result = new AcceptedAtActionResult(actionName: actionName, controllerName: null, routeValues: null, value: null); 40var result = new AcceptedAtActionResult(actionName: null, controllerName: controllerName, routeValues: null, value: null); 61var result = new AcceptedAtActionResult(actionName: null, controllerName: null, routeValues: routeValues, value: null); 95var result = new AcceptedAtActionResult( 110var result = new AcceptedAtActionResult(actionName: null, controllerName: null, routeValues: null, value: null); 133var result = new AcceptedAtActionResult( 157var result = new AcceptedAtActionResult( 183var result = new AcceptedAtActionResult( 205var result = new AcceptedAtActionResult(actionName: null, controllerName: null, routeValues: null, value: null); 221var result = new AcceptedAtActionResult(actionName: null, controllerName: null, routeValues: null, value: null); 231var result = new AcceptedAtActionResult("actionName", "controllerName", "routeValues", "value");
39 references to AcceptedAtActionResult
Microsoft.AspNetCore.Mvc.Core (19)
AcceptedAtActionResult.cs (1)
22/// Initializes a new instance of the <see cref="AcceptedAtActionResult"/> with the values
ControllerBase.cs (18)
2201/// Creates an <see cref="AcceptedAtActionResult"/> object that produces a <see cref="StatusCodes.Status202Accepted"/> response. 2204/// <returns>The created <see cref="AcceptedAtActionResult"/> for the response.</returns> 2206public virtual AcceptedAtActionResult AcceptedAtAction(string? actionName) 2210/// Creates an <see cref="AcceptedAtActionResult"/> object that produces a <see cref="StatusCodes.Status202Accepted"/> response. 2214/// <returns>The created <see cref="AcceptedAtActionResult"/> for the response.</returns> 2216public virtual AcceptedAtActionResult AcceptedAtAction(string? actionName, string? controllerName) 2220/// Creates an <see cref="AcceptedAtActionResult"/> object that produces a <see cref="StatusCodes.Status202Accepted"/> response. 2224/// <returns>The created <see cref="AcceptedAtActionResult"/> for the response.</returns> 2226public virtual AcceptedAtActionResult AcceptedAtAction(string? actionName, [ActionResultObjectValue] object? value) 2230/// Creates an <see cref="AcceptedAtActionResult"/> object that produces a <see cref="StatusCodes.Status202Accepted"/> response. 2235/// <returns>The created <see cref="AcceptedAtActionResult"/> for the response.</returns> 2237public virtual AcceptedAtActionResult AcceptedAtAction(string? actionName, string? controllerName, [ActionResultObjectValue] object? routeValues) 2241/// Creates an <see cref="AcceptedAtActionResult"/> object that produces a <see cref="StatusCodes.Status202Accepted"/> response. 2246/// <returns>The created <see cref="AcceptedAtActionResult"/> for the response.</returns> 2248public virtual AcceptedAtActionResult AcceptedAtAction(string? actionName, object? routeValues, [ActionResultObjectValue] object? value) 2252/// Creates an <see cref="AcceptedAtActionResult"/> object that produces a <see cref="StatusCodes.Status202Accepted"/> response. 2258/// <returns>The created <see cref="AcceptedAtActionResult"/> for the response.</returns> 2260public virtual AcceptedAtActionResult AcceptedAtAction(
Microsoft.AspNetCore.Mvc.Core.Test (17)
AcceptedAtActionResultTests.cs (11)
27var result = new AcceptedAtActionResult(actionName: actionName, controllerName: null, routeValues: null, value: null); 40var result = new AcceptedAtActionResult(actionName: null, controllerName: controllerName, routeValues: null, value: null); 61var result = new AcceptedAtActionResult(actionName: null, controllerName: null, routeValues: routeValues, value: null); 95var result = new AcceptedAtActionResult( 110var result = new AcceptedAtActionResult(actionName: null, controllerName: null, routeValues: null, value: null); 133var result = new AcceptedAtActionResult( 157var result = new AcceptedAtActionResult( 183var result = new AcceptedAtActionResult( 205var result = new AcceptedAtActionResult(actionName: null, controllerName: null, routeValues: null, value: null); 221var result = new AcceptedAtActionResult(actionName: null, controllerName: null, routeValues: null, value: null); 231var result = new AcceptedAtActionResult("actionName", "controllerName", "routeValues", "value");
ControllerBaseTest.cs (6)
1568var result = controller.AcceptedAtAction("SampleAction"); 1571Assert.IsType<AcceptedAtActionResult>(result); 1586var result = controller.AcceptedAtAction("SampleAction", controllerName); 1589Assert.IsType<AcceptedAtActionResult>(result); 1607var result = controller.AcceptedAtAction( 1613Assert.IsType<AcceptedAtActionResult>(result);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (3)
ControllerUnitTestabilityTests.cs (3)
445var acceptedAtActionResult = Assert.IsType<AcceptedAtActionResult>(result); 461acceptedAtActionResult = Assert.IsType<AcceptedAtActionResult>(result);