1 override of CreateValidationProblemDetails
Microsoft.AspNetCore.Mvc.Core (1)
Infrastructure\DefaultProblemDetailsFactory.cs (1)
63
public override ValidationProblemDetails
CreateValidationProblemDetails
(
6 references to CreateValidationProblemDetails
Microsoft.AspNetCore.Mvc.Core (2)
ControllerBase.cs (1)
2003
validationProblem = ProblemDetailsFactory.
CreateValidationProblemDetails
(
DependencyInjection\ApiBehaviorOptionsSetup.cs (1)
32
var problemDetails = problemDetailsFactory.
CreateValidationProblemDetails
(context.HttpContext, context.ModelState);
Microsoft.AspNetCore.Mvc.Core.Test (4)
DependencyInjection\ApiBehaviorOptionsSetupTest.cs (1)
77
var factory = Mock.Of<ProblemDetailsFactory>(m => m.
CreateValidationProblemDetails
(It.IsAny<HttpContext>(), It.IsAny<ModelStateDictionary>(), null, null, null, null, null) == new ValidationProblemDetails
Infrastructure\ProblemDetailsFactoryTest.cs (3)
86
var problemDetails = Factory.
CreateValidationProblemDetails
(GetHttpContext(), modelState);
116
var problemDetails = Factory.
CreateValidationProblemDetails
(GetHttpContext(), modelState, 422);
148
var problemDetails = Factory.
CreateValidationProblemDetails
(GetHttpContext(), modelState, title: title, instance: instance);