34 writes to Type
BasicWebSite (1)
Microsoft.AspNetCore.Http.Abstractions.Tests (4)
Microsoft.AspNetCore.Http.Extensions (1)
Microsoft.AspNetCore.Http.Extensions.Tests (11)
ProblemDetailsDefaultWriterTest.cs (11)
35Type = "https://tools.ietf.org/html/rfc9110#section-15.5.1-custom",
72Type = "https://tools.ietf.org/html/rfc9110#section-15.5.1-custom",
104Type = "https://tools.ietf.org/html/rfc9110#section-15.5.1-custom",
138Type = "https://tools.ietf.org/html/rfc9110#section-15.5.1-custom",
180Type = "https://tools.ietf.org/html/rfc9110#section-15.5.1-custom",
220Type = "https://tools.ietf.org/html/rfc9110#section-15.5.1-custom",
257Type = "https://tools.ietf.org/html/rfc9110#section-15.5.1-custom",
300Type = "https://tools.ietf.org/html/rfc9110#section-15.5.1-custom",
343Type = "https://tools.ietf.org/html/rfc9110#section-15.5.1-custom",
386Type = "https://tools.ietf.org/html/rfc9110#section-15.5.1-custom",
429Type = "https://tools.ietf.org/html/rfc9110#section-15.5.1-custom",
Microsoft.AspNetCore.Http.Results (4)
Microsoft.AspNetCore.Http.Results.Tests (2)
Microsoft.AspNetCore.Mvc.Core (6)
Microsoft.AspNetCore.Mvc.Core.Test (2)
Microsoft.AspNetCore.Mvc.Formatters.Xml (1)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
XmlFormattersWebSite (1)
95 references to Type
Microsoft.AspNetCore.Http.Abstractions.Tests (11)
ProblemDetailsJsonConverterTest.cs (7)
50Assert.Equal(type, problemDetails.Type);
81Assert.Equal(type, problemDetails!.Type);
113Assert.Equal(type, problemDetails!.Type);
145Assert.Equal(type, problemDetails.Type);
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.Tests (21)
ProblemDetailsDefaultWriterTest.cs (21)
52Assert.Equal(expectedProblem.Type, problemDetails.Type);
157Assert.Equal(expectedProblem.Type, problemDetails.Type);
197Assert.Equal(expectedProblem.Type, problemDetails.Type);
237Assert.Equal(expectedProblem.Type, problemDetails.Type);
276Assert.Equal(expectedProblem.Type, problemDetails.Type);
319Assert.Equal(expectedProblem.Type, problemDetails.Type);
362Assert.Equal(expectedProblem.Type, problemDetails.Type);
405Assert.Equal(expectedProblem.Type, problemDetails.Type);
448Assert.Equal(expectedProblem.Type, problemDetails.Type);
562Assert.Equal("https://tools.ietf.org/html/rfc9110#section-15.6.1", problemDetails.Type);
598Assert.Equal("https://tools.ietf.org/html/rfc9110#section-15.5.1", problemDetails.Type);
630Assert.Equal(type, problemDetails.Type);
Microsoft.AspNetCore.Http.Results (8)
Microsoft.AspNetCore.Http.Results.Tests (22)
Microsoft.AspNetCore.Mvc.Core (8)
Microsoft.AspNetCore.Mvc.Core.Test (21)
Microsoft.AspNetCore.Mvc.Formatters.Xml (2)
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)