6 references to Problem
Microsoft.AspNetCore.Http.Results.Tests (4)
ResultsTests.cs (4)
1244Assert.Throws<ArgumentNullException>("problemDetails", () => Results.Problem(default(ProblemDetails))); 1364var result = Results.Problem(problem) as ProblemHttpResult; 1380var 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" } } }),