59 writes to Status
BasicWebSite (2)
Microsoft.AspNetCore.Diagnostics (3)
Microsoft.AspNetCore.Http.Abstractions.Tests (4)
Microsoft.AspNetCore.Http.Extensions (2)
Microsoft.AspNetCore.Http.Extensions.Tests (14)
ProblemDetailsDefaultWriterTest.cs (14)
34Status = StatusCodes.Status400BadRequest,
71Status = StatusCodes.Status400BadRequest,
103Status = StatusCodes.Status400BadRequest,
137Status = StatusCodes.Status400BadRequest,
179Status = StatusCodes.Status400BadRequest,
219Status = StatusCodes.Status400BadRequest,
256Status = StatusCodes.Status400BadRequest,
299Status = StatusCodes.Status400BadRequest,
342Status = StatusCodes.Status400BadRequest,
385Status = StatusCodes.Status400BadRequest,
428Status = StatusCodes.Status400BadRequest,
576context.ProblemDetails.Status = StatusCodes.Status406NotAcceptable;
590ProblemDetails = { Status = StatusCodes.Status400BadRequest }
622ProblemDetails = { Status = statusCode }
Microsoft.AspNetCore.Http.Results (4)
Microsoft.AspNetCore.Http.Results.Tests (8)
Microsoft.AspNetCore.Mvc.Core (10)
Microsoft.AspNetCore.Mvc.Core.Test (8)
Microsoft.AspNetCore.Mvc.Formatters.Xml (1)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
MinimalSample (2)
135 references to Status
Diagnostics.FunctionalTests (5)
Microsoft.AspNetCore.Http.Abstractions.Tests (11)
ProblemDetailsJsonConverterTest.cs (7)
52Assert.Equal(status, problemDetails.Status);
83Assert.Equal(status, problemDetails.Status);
115Assert.Equal(status, problemDetails.Status);
147Assert.Equal(status, problemDetails.Status);
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 (2)
Microsoft.AspNetCore.Http.Extensions.Tests (21)
ProblemDetailsDefaultWriterTest.cs (21)
51Assert.Equal(expectedProblem.Status, problemDetails.Status);
156Assert.Equal(expectedProblem.Status, problemDetails.Status);
196Assert.Equal(expectedProblem.Status, problemDetails.Status);
236Assert.Equal(expectedProblem.Status, problemDetails.Status);
275Assert.Equal(expectedProblem.Status, problemDetails.Status);
318Assert.Equal(expectedProblem.Status, problemDetails.Status);
361Assert.Equal(expectedProblem.Status, problemDetails.Status);
404Assert.Equal(expectedProblem.Status, problemDetails.Status);
447Assert.Equal(expectedProblem.Status, problemDetails.Status);
561Assert.Equal(StatusCodes.Status500InternalServerError, problemDetails.Status);
597Assert.Equal(StatusCodes.Status406NotAcceptable, problemDetails.Status);
629Assert.Equal(statusCode, problemDetails.Status);
Microsoft.AspNetCore.Http.Results (10)
Microsoft.AspNetCore.Http.Results.Tests (29)
Microsoft.AspNetCore.Mvc.Core (18)
Microsoft.AspNetCore.Mvc.Core.Test (29)
Microsoft.AspNetCore.Mvc.Formatters.Xml (2)
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (4)
Microsoft.AspNetCore.Mvc.FunctionalTests (3)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)