2 instantiations of Accepted
Microsoft.AspNetCore.Http.Results (2)
TypedResults.cs (2)
987
=>
new
(uri);
1008
return
new
(uri);
22 references to Accepted
Microsoft.AspNetCore.Http.Results (8)
Accepted.cs (2)
20
/// Initializes a new instance of the <see cref="
Accepted
"/> class with the values
30
/// Initializes a new instance of the <see cref="
Accepted
"/> class with the values
AcceptedOfT.cs (2)
20
/// Initializes a new instance of the <see cref="
Accepted
"/> class with the values
33
/// Initializes a new instance of the <see cref="
Accepted
"/> class with the values
TypedResults.cs (4)
985
/// <returns>The created <see cref="HttpResults.
Accepted
"/> for the response.</returns>
986
public static
Accepted
Accepted(string? uri)
1003
/// <returns>The created <see cref="HttpResults.
Accepted
"/> for the response.</returns>
1004
public static
Accepted
Accepted(Uri uri)
Microsoft.AspNetCore.Http.Results.Tests (14)
AcceptedResultTests.cs (6)
24
var
result = new Accepted(expectedUrl);
36
Accepted
MyApi() { throw new NotImplementedException(); }
41
PopulateMetadata<
Accepted
>(((Delegate)MyApi).GetMethodInfo(), builder);
53
var
result = new Accepted("location");
64
Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<
Accepted
>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.Parse("/"), order: 0)));
65
Assert.Throws<ArgumentNullException>("builder", () => PopulateMetadata<
Accepted
>(((Delegate)PopulateMetadata_ThrowsArgumentNullException_WhenMethodOrBuilderAreNull).GetMethodInfo(), null));
ResultsTests.cs (5)
62
var
result = Results.Accepted(uri) as
Accepted
;
73
var
result = Results.Accepted() as
Accepted
;
1730
(() => Results.Accepted(null, null), typeof(
Accepted
)),
TypedResultsTests.cs (3)
45
var
result = TypedResults.Accepted(uri);
59
var
result = TypedResults.Accepted(uri);
89
var
result = TypedResults.Accepted(uri);