49 writes to Title
BasicWebSite (2)
Controllers\ContactApiController.cs (2)
105Title = "Not Found", 122Title = "Error",
Microsoft.AspNetCore.Diagnostics (1)
DeveloperExceptionPage\DeveloperExceptionPageMiddlewareImpl.cs (1)
255Title = TypeNameHelper.GetTypeDisplayName(errorContext.Exception.GetType()),
Microsoft.AspNetCore.Http.Abstractions (1)
ProblemDetails\HttpValidationProblemDetails.cs (1)
42Title = "One or more validation errors occurred.";
Microsoft.AspNetCore.Http.Abstractions.Tests (4)
HttpValidationProblemDetailsJsonConverterTest.cs (1)
20problemDetails.Title = "Not found";
ProblemDetailsJsonConverterTest.cs (3)
164Title = "Not found", 195Title = "Not found", 219Title = "Not found",
Microsoft.AspNetCore.Http.Extensions (2)
src\Shared\ProblemDetails\ProblemDetailsDefaults.cs (2)
192problemDetails.Title ??= defaults.Title; 200problemDetails.Title = reasonPhrase;
Microsoft.AspNetCore.Http.Extensions.Tests (12)
ProblemDetailsDefaultWriterTest.cs (12)
36Title = "Custom Bad Request", 73Title = "Custom Bad Request", 105Title = "Custom Bad Request", 139Title = "Custom Bad Request", 181Title = "Custom Bad Request", 221Title = "Custom Bad Request", 258Title = "Custom Bad Request", 301Title = "Custom Bad Request", 344Title = "Custom Bad Request", 387Title = "Custom Bad Request", 430Title = "Custom Bad Request", 577context.ProblemDetails.Title = "Custom Title";
Microsoft.AspNetCore.Http.Results (5)
Results.cs (1)
810problemDetails.Title = title ?? problemDetails.Title;
src\Shared\ProblemDetails\ProblemDetailsDefaults.cs (2)
192problemDetails.Title ??= defaults.Title; 200problemDetails.Title = reasonPhrase;
TypedResults.cs (2)
793Title = title, 864problemDetails.Title = title ?? problemDetails.Title;
Microsoft.AspNetCore.Http.Results.Tests (4)
ResultsTests.cs (2)
1361var problem = new ProblemDetails { Title = "Test title" }; 1377var problem = new HttpValidationProblemDetails { Title = "Test title" };
TypedResultsTests.cs (2)
1153var problem = new ProblemDetails { Title = "Test title" }; 1169var problem = new HttpValidationProblemDetails { Title = "Test title" };
Microsoft.AspNetCore.Mvc.Core (8)
ControllerBase.cs (2)
1875Title = title, 1997Title = title,
Infrastructure\DefaultProblemDetailsFactory.cs (3)
51Title = title, 87problemDetails.Title = title; 101problemDetails.Title ??= clientErrorData.Title;
src\Shared\ProblemDetails\ProblemDetailsDefaults.cs (2)
192problemDetails.Title ??= defaults.Title; 200problemDetails.Title = reasonPhrase;
ValidationProblemDetails.cs (1)
21Title = Resources.ValidationProblemDescription_Title;
Microsoft.AspNetCore.Mvc.Core.Test (4)
Infrastructure\DefaultApiProblemDetailsWriterTest.cs (2)
32Title = "Custom Bad Request", 69Title = "Custom Bad Request",
Infrastructure\ValidationProblemDetailsJsonConverterTest.cs (2)
141Title = "One or more validation errors occurred.", 171Title = "One or more validation errors occurred.",
Microsoft.AspNetCore.Mvc.Formatters.Xml (1)
ProblemDetailsWrapper.cs (1)
96ProblemDetails.Title = value;
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (3)
ProblemDetailsWrapperTest.cs (1)
62Title = "Some title",
ValidationProblemDetailsWrapperTest.cs (2)
142Title = "Some title", 191Title = "Some title",
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
AnnotatedProblemDetails.cs (1)
50problemDetails.Title = Title;
XmlFormattersWebSite (1)
Controllers\XmlApiControllerBase.cs (1)
23Title = "title",
119 references to Title
Microsoft.AspNetCore.Http.Abstractions.Tests (11)
HttpValidationProblemDetailsJsonConverterTest.cs (4)
36Assert.Equal(problemDetails.Title, document.RootElement.GetProperty("title").GetString()); 67Assert.Equal(title, problemDetails.Title); 110Assert.Equal(title, problemDetails.Title); 149Assert.Equal(title, problemDetails.Title);
ProblemDetailsJsonConverterTest.cs (7)
51Assert.Equal(title, problemDetails.Title); 82Assert.Equal(title, problemDetails.Title); 114Assert.Equal(title, problemDetails.Title); 146Assert.Equal(title, problemDetails.Title); 175var expected = $"{{\"type\":\"{JsonEncodedText.Encode(value.Type)}\",\"title\":\"{value.Title}\",\"status\":{value.Status},\"detail\":\"{value.Detail}\",\"instance\":\"{JsonEncodedText.Encode(value.Instance)}\",\"traceId\":\"{traceId}\",\"some-data\":[\"value1\",\"value2\"]}}"; 199var expected = $"{{\"type\":\"{JsonEncodedText.Encode(value.Type)}\",\"title\":\"{value.Title}\",\"status\":{value.Status}}}"; 230var expected = $"{{\"type\":\"{JsonEncodedText.Encode(value.Type)}\",\"title\":\"{value.Title}\",\"status\":{value.Status},\"detail\":\"{value.Detail}\",\"instance\":\"{JsonEncodedText.Encode(value.Instance)}\",\"traceId\":null,\"some-data\":[\"value1\",\"value2\"]}}";
Microsoft.AspNetCore.Http.Extensions (1)
src\Shared\ProblemDetails\ProblemDetailsDefaults.cs (1)
195else if (problemDetails.Title is null)
Microsoft.AspNetCore.Http.Extensions.Tests (21)
ProblemDetailsDefaultWriterTest.cs (21)
53Assert.Equal(expectedProblem.Title, problemDetails.Title); 158Assert.Equal(expectedProblem.Title, problemDetails.Title); 198Assert.Equal(expectedProblem.Title, problemDetails.Title); 238Assert.Equal(expectedProblem.Title, problemDetails.Title); 277Assert.Equal(expectedProblem.Title, problemDetails.Title); 320Assert.Equal(expectedProblem.Title, problemDetails.Title); 363Assert.Equal(expectedProblem.Title, problemDetails.Title); 406Assert.Equal(expectedProblem.Title, problemDetails.Title); 449Assert.Equal(expectedProblem.Title, problemDetails.Title); 563Assert.Equal("An error occurred while processing your request.", problemDetails.Title); 599Assert.Equal("Custom Title", problemDetails.Title); 631Assert.Equal(title, problemDetails.Title);
Microsoft.AspNetCore.Http.Results (11)
Results.cs (5)
710/// <param name="title">The value for <see cref="ProblemDetails.Title" />.</param> 729/// <param name="title">The value for <see cref="ProblemDetails.Title" />.</param> 760/// <param name="title">The value for <see cref="ProblemDetails.Title" />. Defaults to "One or more validation errors occurred."</param> 784/// <param name="title">The value for <see cref="ProblemDetails.Title" />. Defaults to "One or more validation errors occurred."</param> 810problemDetails.Title = title ?? problemDetails.Title;
src\Shared\ProblemDetails\ProblemDetailsDefaults.cs (1)
195else if (problemDetails.Title is null)
TypedResults.cs (5)
753/// <param name="title">The value for <see cref="ProblemDetails.Title" />.</param> 774/// <param name="title">The value for <see cref="ProblemDetails.Title" />.</param> 820/// <param name="title">The value for <see cref="ProblemDetails.Title" />. Defaults to "One or more validation errors occurred."</param> 841/// <param name="title">The value for <see cref="ProblemDetails.Title" />. Defaults to "One or more validation errors occurred."</param> 864problemDetails.Title = title ?? problemDetails.Title;
Microsoft.AspNetCore.Http.Results.Tests (26)
JsonResultTests.cs (3)
137Assert.Equal("An error occurred while processing your request.", responseDetails.Title); 166Assert.Equal("One or more validation errors occurred.", responseDetails.Title); 198Assert.Equal("I'm a teapot", responseDetails.Title);
ProblemResultTests.cs (4)
40Assert.Equal("An error occurred while processing your request.", responseDetails.Title); 72Assert.Equal("An error occurred while processing your request.", responseDetails.Title); 101Assert.Equal("One or more validation errors occurred.", responseDetails.Title); 133Assert.Equal("I'm a teapot", responseDetails.Title);
ResultsTests.cs (9)
1266Assert.Equal(title, result.ProblemDetails.Title); 1290Assert.Equal(title, result.ProblemDetails.Title); 1314Assert.Equal(title, result.ProblemDetails.Title); 1335Assert.Equal(title, result.ProblemDetails.Title); 1352Assert.Equal("An error occurred while processing your request.", result.ProblemDetails.Title); 1368Assert.Equal("Test title", result.ProblemDetails.Title); 1384Assert.Equal("Test title", result.ProblemDetails.Title); 1420Assert.Equal(title, result.ProblemDetails.Title); 1451Assert.Equal(title, result.ProblemDetails.Title);
TypedResultsTests.cs (8)
1082Assert.Equal(title, result.ProblemDetails.Title); 1106Assert.Equal(title, result.ProblemDetails.Title); 1127Assert.Equal(title, result.ProblemDetails.Title); 1144Assert.Equal("An error occurred while processing your request.", result.ProblemDetails.Title); 1160Assert.Equal("Test title", result.ProblemDetails.Title); 1176Assert.Equal("Test title", result.ProblemDetails.Title); 1207Assert.Equal(title, result.ProblemDetails.Title); 1233Assert.Equal(title, result.ProblemDetails.Title);
ValidationProblemResultTests.cs (2)
44Assert.Equal("One or more validation errors occurred.", responseDetails.Title); 76Assert.Equal("One or more validation errors occurred.", responseDetails.Title);
Microsoft.AspNetCore.Identity.FunctionalTests (1)
MapIdentityApiTests.cs (1)
1452Assert.Equal(title ?? ReasonPhrases.GetReasonPhrase((int)status), problem.Title);
Microsoft.AspNetCore.Mvc.Core (9)
ClientErrorData.cs (1)
24/// By default, this maps to <see cref="ProblemDetails.Title"/> and should not change
ControllerBase.cs (4)
1834/// <param name="title">The value for <see cref="ProblemDetails.Title" />.</param> 1853/// <param name="title">The value for <see cref="ProblemDetails.Title" />.</param> 1945/// <param name="title">The value for <see cref="ProblemDetails.Title" />.</param> 1969/// <param name="title">The value for <see cref="ProblemDetails.Title" />.</param>
Infrastructure\DefaultApiProblemDetailsWriter.cs (1)
59context.ProblemDetails.Title,
Infrastructure\ProblemDetailsFactory.cs (2)
19/// <param name="title">The value for <see cref="ProblemDetails.Title" />.</param> 38/// <param name="title">The value for <see cref="ProblemDetails.Title" />.</param>
src\Shared\ProblemDetails\ProblemDetailsDefaults.cs (1)
195else if (problemDetails.Title is null)
Microsoft.AspNetCore.Mvc.Core.Test (29)
ControllerBaseTest.cs (5)
2359Assert.Equal("One or more validation errors occurred.", problemDetails.Title); 2385Assert.Equal(title, problemDetails.Title); 2478Assert.Equal("An error occurred while processing your request.", problemDetails.Title); 2504Assert.Equal(title, problemDetails.Title); 2549Assert.Equal("Unprocessable entity.", problemDetails.Title);
DependencyInjection\ApiBehaviorOptionsSetupTest.cs (3)
46Assert.Equal("One or more validation errors occurred.", problemDetails.Title); 68Assert.Equal("One or more validation errors occurred.", problemDetails.Title); 92Assert.Equal("One or more validation errors occurred.", problemDetails.Title);
Infrastructure\DefaultApiProblemDetailsWriterTest.cs (4)
49Assert.Equal(expectedProblem.Title, problemDetails.Title); 88Assert.Equal(expectedProblem.Title, problemDetails.Title);
Infrastructure\ProblemDetailsFactoryTest.cs (6)
23Assert.Equal("An error occurred while processing your request.", problemDetails.Title); 44Assert.Equal("Not Acceptable", problemDetails.Title); 67Assert.Equal(title, problemDetails.Title); 90Assert.Equal("One or more validation errors occurred.", problemDetails.Title); 120Assert.Equal("One or more validation errors occurred.", problemDetails.Title); 152Assert.Equal(title, problemDetails.Title);
Infrastructure\ProblemDetalsClientErrorFactoryTest.cs (2)
34Assert.Null(problemDetails.Title); 62Assert.Equal("Summary", problemDetails.Title);
Infrastructure\ValidationProblemDetailsJsonConverterTest.cs (5)
33Assert.Equal(title, problemDetails.Title); 75Assert.Equal(title, problemDetails.Title); 113Assert.Equal(title, problemDetails.Title); 154var expectedJSON = $"{{\"title\":\"{problemDetails.Title}\",\"status\":{problemDetails.Status}," + 187var expectedJSON = $"{{\"title\":\"{problemDetails.Title}\",\"status\":{problemDetails.Status}," +
ValidationProblemDetailsTest.cs (4)
17Assert.Equal("One or more validation errors occurred.", problemDescription.Title); 35Assert.Equal("One or more validation errors occurred.", problemDescription.Title); 65Assert.Equal("One or more validation errors occurred.", problemDescription.Title); 89Assert.Equal("One or more validation errors occurred.", problemDescription.Title);
Microsoft.AspNetCore.Mvc.Formatters.Xml (2)
ProblemDetailsWrapper.cs (2)
138if (!string.IsNullOrEmpty(ProblemDetails.Title)) 142ProblemDetails.Title);
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (4)
ProblemDetailsWrapperTest.cs (1)
33Assert.Equal("Some title", problemDetails.Title);
ValidationProblemDetailsWrapperTest.cs (3)
37Assert.Equal("Some title", problemDetails.Title); 93Assert.Equal("Some title", problemDetails.Title); 131Assert.Equal("Some title", problemDetails.Title);
Microsoft.AspNetCore.Mvc.FunctionalTests (3)
ApiBehaviorTest.cs (3)
70Assert.Equal("One or more validation errors occurred.", problemDetails.Title); 132Assert.Equal("Unsupported Media Type", problemDetails.Title); 367Assert.Equal("Error", validationProblemDetails.Title);
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
AnnotatedProblemDetails.cs (1)
20Title = problemDetails.Title;