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