1 write to ProblemDetails
Microsoft.AspNetCore.Http.Results (1)
ValidationProblem.cs (1)
26
ProblemDetails
= problemDetails;
20 references to ProblemDetails
Microsoft.AspNetCore.Http.Results (5)
ValidationProblem.cs (5)
27
ProblemDetailsDefaults.Apply(
ProblemDetails
, statusCode: StatusCodes.Status400BadRequest);
35
object? IValueHttpResult.Value =>
ProblemDetails
;
37
HttpValidationProblemDetails? IValueHttpResult<HttpValidationProblemDetails>.Value =>
ProblemDetails
;
63
if (problemDetailsService is null || !await problemDetailsService.TryWriteAsync(new() { HttpContext = httpContext, ProblemDetails =
ProblemDetails
}))
68
value:
ProblemDetails
,
Microsoft.AspNetCore.Http.Results.Tests (15)
TypedResultsTests.cs (14)
1202
Assert.Equal(errors, result.
ProblemDetails
.Errors);
1203
Assert.Equal(detail, result.
ProblemDetails
.Detail);
1204
Assert.Equal(instance, result.
ProblemDetails
.Instance);
1205
Assert.Equal(StatusCodes.Status400BadRequest, result.
ProblemDetails
.Status);
1207
Assert.Equal(title, result.
ProblemDetails
.Title);
1208
Assert.Equal(type, result.
ProblemDetails
.Type);
1210
Assert.Equal(extensions, result.
ProblemDetails
.Extensions);
1228
Assert.Equal(errors, result.
ProblemDetails
.Errors);
1229
Assert.Equal(detail, result.
ProblemDetails
.Detail);
1230
Assert.Equal(instance, result.
ProblemDetails
.Instance);
1231
Assert.Equal(StatusCodes.Status400BadRequest, result.
ProblemDetails
.Status);
1233
Assert.Equal(title, result.
ProblemDetails
.Title);
1234
Assert.Equal(type, result.
ProblemDetails
.Type);
1236
Assert.Equal(extensions, result.
ProblemDetails
.Extensions);
ValidationProblemResultTests.cs (1)
40
Assert.Equal(details, result.
ProblemDetails
);