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