10 instantiations of CreatedResult
Microsoft.AspNetCore.Mvc.Core (3)
ControllerBase.cs (3)
2040
return new
CreatedResult
();
2052
return new
CreatedResult
(uri, value);
2064
return new
CreatedResult
(uri, value);
Microsoft.AspNetCore.Mvc.Core.Test (7)
CreatedResultTests.cs (7)
22
var result = new
CreatedResult
();
35
var result = new
CreatedResult
(location, "testInput");
45
var result = new
CreatedResult
();
55
var result = new
CreatedResult
((string)null, "testInput");
68
var result = new
CreatedResult
(location, "testInput");
84
var result = new
CreatedResult
((string)null, "testInput");
102
var result = new
CreatedResult
(location, "testInput");
31 references to CreatedResult
Microsoft.AspNetCore.Mvc.Core (12)
ControllerBase.cs (9)
2034
/// Creates a <see cref="
CreatedResult
"/> object that produces a <see cref="StatusCodes.Status201Created"/> response.
2036
/// <returns>The created <see cref="
CreatedResult
"/> for the response.</returns>
2038
public virtual
CreatedResult
Created()
2044
/// Creates a <see cref="
CreatedResult
"/> object that produces a <see cref="StatusCodes.Status201Created"/> response.
2048
/// <returns>The created <see cref="
CreatedResult
"/> for the response.</returns>
2050
public virtual
CreatedResult
Created(string? uri, [ActionResultObjectValue] object? value)
2056
/// Creates a <see cref="
CreatedResult
"/> object that produces a <see cref="StatusCodes.Status201Created"/> response.
2060
/// <returns>The created <see cref="
CreatedResult
"/> for the response.</returns>
2062
public virtual
CreatedResult
Created(Uri? uri, [ActionResultObjectValue] object? value)
CreatedResult.cs (3)
20
/// Initializes a new instance of the <see cref="
CreatedResult
"/> class
29
/// Initializes a new instance of the <see cref="
CreatedResult
"/> class with the values
46
/// Initializes a new instance of the <see cref="
CreatedResult
"/> class with the values
Microsoft.AspNetCore.Mvc.Core.Test (17)
ControllerBaseTest.cs (10)
1296
var
result = controller.Created(uri, null);
1299
Assert.IsType<
CreatedResult
>(result);
1311
var
result = controller.Created((string)null, null);
1314
Assert.IsType<
CreatedResult
>(result);
1327
var
result = controller.Created(uri, null);
1330
Assert.IsType<
CreatedResult
>(result);
1342
var
result = controller.Created((Uri)null, null);
1345
Assert.IsType<
CreatedResult
>(result);
1358
var
result = controller.Created(uri, null);
1361
Assert.IsType<
CreatedResult
>(result);
CreatedResultTests.cs (7)
22
var
result = new CreatedResult();
35
var
result = new CreatedResult(location, "testInput");
45
var
result = new CreatedResult();
55
var
result = new CreatedResult((string)null, "testInput");
68
var
result = new CreatedResult(location, "testInput");
84
var
result = new CreatedResult((string)null, "testInput");
102
var
result = new CreatedResult(location, "testInput");
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
ControllerUnitTestabilityTests.cs (2)
96
var
createdResult = Assert.IsType<
CreatedResult
>(result);