4 writes to Errors
BasicWebSite (1)
Controllers\ContactApiController.cs (1)
128Errors =
Microsoft.AspNetCore.Http.Extensions.Tests (1)
ProblemDetailsDefaultWriterTest.cs (1)
106Errors = new Dictionary<string, string[]>() { { "name", ["Name is invalid."] } }
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (1)
ValidationProblemDetailsWrapperTest.cs (1)
149Errors =
XmlFormattersWebSite (1)
Controllers\XmlApiControllerBase.cs (1)
47Errors =
31 references to Errors
Microsoft.AspNetCore.Mvc.Core.Test (11)
ControllerBaseTest.cs (1)
2362Assert.Equal(new[] { "error1" }, problemDetails.Errors["key1"]);
Infrastructure\ProblemDetailsFactoryTest.cs (3)
102problemDetails.Errors, 132problemDetails.Errors, 164problemDetails.Errors,
Infrastructure\ValidationProblemDetailsJsonConverterTest.cs (3)
45problemDetails.Errors.OrderBy(kvp => kvp.Key), 85problemDetails.Errors.OrderBy(kvp => kvp.Key), 123problemDetails.Errors.OrderBy(kvp => kvp.Key),
ValidationProblemDetailsTest.cs (4)
18Assert.Empty(problemDescription.Errors); 37problemDescription.Errors, 67problemDescription.Errors, 91problemDescription.Errors,
Microsoft.AspNetCore.Mvc.Formatters.Xml (3)
ValidationProblemDetailsWrapper.cs (3)
70ProblemDetails.Errors.Add(key, new[] { value }); 82if (ProblemDetails.Errors.Count == 0) 89foreach (var keyValuePair in ProblemDetails.Errors)
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (3)
ValidationProblemDetailsWrapperTest.cs (3)
55problemDetails.Errors.OrderBy(kvp => kvp.Key), 110Assert.Empty(problemDetails.Errors); 133Assert.Empty(problemDetails.Errors);
Microsoft.AspNetCore.Mvc.FunctionalTests (11)
ApiBehaviorTest.cs (2)
74problemDetails.Errors.OrderBy(kvp => kvp.Key), 378validationProblemDetails.Errors,
BasicTests.cs (2)
632problem.Errors.OrderBy(e => e.Key), 658problemDetails.Errors,
InputFormatterTests.cs (2)
192problemDetails.Errors, 210problemDetails.Errors,
InputObjectValidationTests.cs (3)
303validationProblemDetails.Errors, 332validationProblemDetails.Errors, 364validationProblemDetails.Errors,
JsonInputFormatterTestBase.cs (1)
163problem.Errors.OrderBy(e => e.Key),
ReadFromDisconnectedClientTest.cs (1)
67var error = Assert.Single(problem.Errors);
Microsoft.AspNetCore.Mvc.NewtonsoftJson (2)
ValidationProblemDetailsConverter.cs (2)
59foreach (var kvp in problemDetails.Errors) 74problemDetails.Errors[kvp.Key] = kvp.Value;
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
ControllerUnitTestabilityTests.cs (1)
713var error = Assert.Single(validationProblemDetails.Errors);