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