27 writes to Instance
BasicWebSite (1)
Controllers\ContactApiController.cs (1)
109Instance = "Instance",
Microsoft.AspNetCore.Http.Abstractions.Tests (3)
HttpValidationProblemDetailsJsonConverterTest.cs (1)
23problemDetails.Instance = "http://example.com/products/14";
ProblemDetailsJsonConverterTest.cs (2)
168Instance = "http://example.com/products/14", 223Instance = "http://example.com/products/14",
Microsoft.AspNetCore.Http.Extensions.Tests (11)
ProblemDetailsDefaultWriterTest.cs (11)
33Instance = "Custom Bad Request", 70Instance = "Custom Bad Request", 102Instance = "Custom Bad Request", 136Instance = "Custom Bad Request", 178Instance = "Custom Bad Request", 218Instance = "Custom Bad Request", 255Instance = "Custom Bad Request", 298Instance = "Custom Bad Request", 341Instance = "Custom Bad Request", 384Instance = "Custom Bad Request", 427Instance = "Custom Bad Request",
Microsoft.AspNetCore.Http.Results (3)
Results.cs (1)
805Instance = instance,
TypedResults.cs (2)
791Instance = instance, 860Instance = instance,
Microsoft.AspNetCore.Mvc.Core (4)
ControllerBase.cs (2)
1873Instance = instance, 1995Instance = instance,
Infrastructure\DefaultProblemDetailsFactory.cs (2)
54Instance = instance, 81Instance = instance,
Microsoft.AspNetCore.Mvc.Core.Test (2)
Infrastructure\DefaultApiProblemDetailsWriterTest.cs (2)
29Instance = "Custom Bad Request", 66Instance = "Custom Bad Request",
Microsoft.AspNetCore.Mvc.Formatters.Xml (1)
ProblemDetailsWrapper.cs (1)
86ProblemDetails.Instance = value;
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
AnnotatedProblemDetails.cs (1)
52problemDetails.Instance = Instance;
XmlFormattersWebSite (1)
Controllers\XmlApiControllerBase.cs (1)
22Instance = "instance",
72 references to Instance
Microsoft.AspNetCore.Http.Abstractions.Tests (7)
HttpValidationProblemDetailsJsonConverterTest.cs (2)
39Assert.Equal(problemDetails.Instance, document.RootElement.GetProperty("instance").GetString()); 69Assert.Equal(instance, problemDetails.Instance);
ProblemDetailsJsonConverterTest.cs (5)
53Assert.Equal(instance, problemDetails.Instance); 84Assert.Equal(instance, problemDetails.Instance); 116Assert.Equal(instance, problemDetails.Instance); 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\"]}}"; 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.Tests (18)
ProblemDetailsDefaultWriterTest.cs (18)
55Assert.Equal(expectedProblem.Instance, problemDetails.Instance); 160Assert.Equal(expectedProblem.Instance, problemDetails.Instance); 200Assert.Equal(expectedProblem.Instance, problemDetails.Instance); 240Assert.Equal(expectedProblem.Instance, problemDetails.Instance); 279Assert.Equal(expectedProblem.Instance, problemDetails.Instance); 322Assert.Equal(expectedProblem.Instance, problemDetails.Instance); 365Assert.Equal(expectedProblem.Instance, problemDetails.Instance); 408Assert.Equal(expectedProblem.Instance, problemDetails.Instance); 451Assert.Equal(expectedProblem.Instance, problemDetails.Instance);
Microsoft.AspNetCore.Http.Results (8)
Results.cs (4)
709/// <param name="instance">The value for <see cref="ProblemDetails.Instance" />.</param> 728/// <param name="instance">The value for <see cref="ProblemDetails.Instance" />.</param> 758/// <param name="instance">The value for <see cref="ProblemDetails.Instance" />.</param> 782/// <param name="instance">The value for <see cref="ProblemDetails.Instance" />.</param>
TypedResults.cs (4)
752/// <param name="instance">The value for <see cref="ProblemDetails.Instance" />.</param> 773/// <param name="instance">The value for <see cref="ProblemDetails.Instance" />.</param> 819/// <param name="instance">The value for <see cref="ProblemDetails.Instance" />.</param> 840/// <param name="instance">The value for <see cref="ProblemDetails.Instance" />.</param>
Microsoft.AspNetCore.Http.Results.Tests (13)
ResultsTests.cs (7)
1263Assert.Equal(instance, result.ProblemDetails.Instance); 1287Assert.Equal(instance, result.ProblemDetails.Instance); 1311Assert.Equal(instance, result.ProblemDetails.Instance); 1332Assert.Null(result.ProblemDetails.Instance); 1349Assert.Null(result.ProblemDetails.Instance); 1417Assert.Equal(instance, result.ProblemDetails.Instance); 1448Assert.Equal(instance, result.ProblemDetails.Instance);
TypedResultsTests.cs (6)
1079Assert.Equal(instance, result.ProblemDetails.Instance); 1103Assert.Equal(instance, result.ProblemDetails.Instance); 1124Assert.Null(result.ProblemDetails.Instance); 1141Assert.Null(result.ProblemDetails.Instance); 1204Assert.Equal(instance, result.ProblemDetails.Instance); 1230Assert.Equal(instance, result.ProblemDetails.Instance);
Microsoft.AspNetCore.Mvc.Core (7)
ControllerBase.cs (4)
1833/// <param name="instance">The value for <see cref="ProblemDetails.Instance" />.</param> 1852/// <param name="instance">The value for <see cref="ProblemDetails.Instance" />.</param> 1943/// <param name="instance">The value for <see cref="ProblemDetails.Instance" />.</param> 1967/// <param name="instance">The value for <see cref="ProblemDetails.Instance" />.</param>
Infrastructure\DefaultApiProblemDetailsWriter.cs (1)
62context.ProblemDetails.Instance);
Infrastructure\ProblemDetailsFactory.cs (2)
22/// <param name="instance">The value for <see cref="ProblemDetails.Instance" />.</param> 41/// <param name="instance">The value for <see cref="ProblemDetails.Instance" />.</param>
Microsoft.AspNetCore.Mvc.Core.Test (13)
Infrastructure\DefaultApiProblemDetailsWriterTest.cs (4)
51Assert.Equal(expectedProblem.Instance, problemDetails.Instance); 90Assert.Equal(expectedProblem.Instance, problemDetails.Instance);
Infrastructure\ProblemDetailsFactoryTest.cs (6)
25Assert.Null(problemDetails.Instance); 46Assert.Null(problemDetails.Instance); 69Assert.Null(problemDetails.Instance); 92Assert.Null(problemDetails.Instance); 122Assert.Null(problemDetails.Instance); 154Assert.Equal(instance, problemDetails.Instance);
Infrastructure\ProblemDetalsClientErrorFactoryTest.cs (2)
36Assert.Null(problemDetails.Instance); 64Assert.Null(problemDetails.Instance);
Infrastructure\ValidationProblemDetailsJsonConverterTest.cs (1)
35Assert.Equal(instance, problemDetails.Instance);
Microsoft.AspNetCore.Mvc.Formatters.Xml (2)
ProblemDetailsWrapper.cs (2)
124if (!string.IsNullOrEmpty(ProblemDetails.Instance)) 128ProblemDetails.Instance);
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (3)
ProblemDetailsWrapperTest.cs (1)
34Assert.Equal("Some instance", problemDetails.Instance);
ValidationProblemDetailsWrapperTest.cs (2)
38Assert.Equal("Some instance", problemDetails.Instance); 94Assert.Equal("Some instance", problemDetails.Instance);
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
AnnotatedProblemDetails.cs (1)
18Instance = problemDetails.Instance;