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