1 instantiation of UnprocessableEntity
Microsoft.AspNetCore.Http.Results (1)
ResultsCache.cs (1)
16
public static UnprocessableEntity UnprocessableEntity { get; } =
new
();
16 references to UnprocessableEntity
Microsoft.AspNetCore.Http.Results (5)
ResultsCache.cs (1)
16
public static
UnprocessableEntity
UnprocessableEntity { get; } = new();
TypedResults.cs (2)
722
/// <returns>The created <see cref="HttpResults.
UnprocessableEntity
"/> for the response.</returns>
723
public static
UnprocessableEntity
UnprocessableEntity() => ResultsCache.UnprocessableEntity;
UnprocessableEntity.cs (1)
19
/// Initializes a new instance of the <see cref="
UnprocessableEntity
"/> class with the values
UnprocessableEntityOfT.cs (1)
20
/// Initializes a new instance of the <see cref="
UnprocessableEntity
"/> class with the values
Microsoft.AspNetCore.Http.Results.Tests (11)
ResultsTests.cs (3)
1692
var
result = Results.UnprocessableEntity() as
UnprocessableEntity
;
1778
(() => Results.UnprocessableEntity(null), typeof(
UnprocessableEntity
)),
TypedResultsTests.cs (1)
1471
var
result = TypedResults.UnprocessableEntity();
UnprocessableEntityResultTests.cs (7)
22
var
result = new UnprocessableEntity();
32
var
result = new UnprocessableEntity();
49
UnprocessableEntity
MyApi() { throw new NotImplementedException(); }
54
PopulateMetadata<
UnprocessableEntity
>(((Delegate)MyApi).GetMethodInfo(), builder);
66
var
result = new UnprocessableEntity();
77
Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<
UnprocessableEntity
>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.Parse("/"), order: 0)));
78
Assert.Throws<ArgumentNullException>("builder", () => PopulateMetadata<
UnprocessableEntity
>(((Delegate)PopulateMetadata_ThrowsArgumentNullException_WhenMethodOrBuilderAreNull).GetMethodInfo(), null));