10 instantiations of AcceptedResult
Microsoft.AspNetCore.Mvc.Core (6)
ControllerBase.cs (6)
2141
=> new
AcceptedResult
();
2150
=> new
AcceptedResult
(location: null, value: value);
2163
return new
AcceptedResult
(locationUri: uri, value: null);
2174
=> new
AcceptedResult
(location: uri, value: null);
2184
=> new
AcceptedResult
(uri, value);
2197
return new
AcceptedResult
(locationUri: uri, value: value);
Microsoft.AspNetCore.Mvc.Core.Test (4)
AcceptedResultTests.cs (4)
36
var result = new
AcceptedResult
("testlocation", value);
59
var result = new
AcceptedResult
(location, value);
76
var result = new
AcceptedResult
(location, "testInput");
95
var result = new
AcceptedResult
(location, "testInput");
37 references to AcceptedResult
Microsoft.AspNetCore.Mvc.Core (21)
AcceptedResult.cs (3)
18
/// Initializes a new instance of the <see cref="
AcceptedResult
"/> class with the values
28
/// Initializes a new instance of the <see cref="
AcceptedResult
"/> class with the values
41
/// Initializes a new instance of the <see cref="
AcceptedResult
"/> class with the values
ControllerBase.cs (18)
2136
/// Creates an <see cref="
AcceptedResult
"/> object that produces a <see cref="StatusCodes.Status202Accepted"/> response.
2138
/// <returns>The created <see cref="
AcceptedResult
"/> for the response.</returns>
2140
public virtual
AcceptedResult
Accepted()
2144
/// Creates an <see cref="
AcceptedResult
"/> object that produces a <see cref="StatusCodes.Status202Accepted"/> response.
2147
/// <returns>The created <see cref="
AcceptedResult
"/> for the response.</returns>
2149
public virtual
AcceptedResult
Accepted([ActionResultObjectValue] object? value)
2153
/// Creates an <see cref="
AcceptedResult
"/> object that produces a <see cref="StatusCodes.Status202Accepted"/> response.
2157
/// <returns>The created <see cref="
AcceptedResult
"/> for the response.</returns>
2159
public virtual
AcceptedResult
Accepted(Uri uri)
2167
/// Creates an <see cref="
AcceptedResult
"/> object that produces a <see cref="StatusCodes.Status202Accepted"/> response.
2171
/// <returns>The created <see cref="
AcceptedResult
"/> for the response.</returns>
2173
public virtual
AcceptedResult
Accepted(string? uri)
2177
/// Creates an <see cref="
AcceptedResult
"/> object that produces a <see cref="StatusCodes.Status202Accepted"/> response.
2181
/// <returns>The created <see cref="
AcceptedResult
"/> for the response.</returns>
2183
public virtual
AcceptedResult
Accepted(string? uri, [ActionResultObjectValue] object? value)
2187
/// Creates an <see cref="
AcceptedResult
"/> object that produces a <see cref="StatusCodes.Status202Accepted"/> response.
2191
/// <returns>The created <see cref="
AcceptedResult
"/> for the response.</returns>
2193
public virtual
AcceptedResult
Accepted(Uri uri, [ActionResultObjectValue] object? value)
Microsoft.AspNetCore.Mvc.Core.Test (14)
AcceptedResultTests.cs (4)
36
var
result = new AcceptedResult("testlocation", value);
59
var
result = new AcceptedResult(location, value);
76
var
result = new AcceptedResult(location, "testInput");
95
var
result = new AcceptedResult(location, "testInput");
ControllerBaseTest.cs (10)
1490
var
result = controller.Accepted();
1493
Assert.IsType<
AcceptedResult
>(result);
1505
var
result = controller.Accepted(value);
1508
Assert.IsType<
AcceptedResult
>(result);
1521
var
result = controller.Accepted(uri);
1524
Assert.IsType<
AcceptedResult
>(result);
1537
var
result = controller.Accepted(uri);
1540
Assert.IsType<
AcceptedResult
>(result);
1553
var
result = controller.Accepted(uri);
1556
Assert.IsType<
AcceptedResult
>(result);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
ControllerUnitTestabilityTests.cs (2)
116
var
acceptedResult = Assert.IsType<
AcceptedResult
>(result);