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