6 references to Problem
Microsoft.AspNetCore.Http.Results.Tests (4)
ResultsTests.cs (4)
1244
Assert.Throws<ArgumentNullException>("problemDetails", () => Results.
Problem
(default(ProblemDetails)));
1364
var result = Results.
Problem
(problem) as ProblemHttpResult;
1380
var result = Results.
Problem
(problem) as ProblemHttpResult;
1765
(() => Results.
Problem
(new()), typeof(ProblemHttpResult)),
MinimalSample (2)
Program.cs (2)
86
"object" => Results.
Problem
(new ProblemDetails() { Status = 500, Extensions = { { "traceId", "traceId123" } } }),
88
"objectValidation" => Results.
Problem
(new HttpValidationProblemDetails(errors) { Status = 400, Extensions = { { "traceId", "traceId123" } } }),