10 references to StatusCode
Microsoft.AspNetCore.Http.Results (4)
NotFoundOfT.cs (4)
26
HttpResultsHelper.ApplyProblemDetailsDefaultsIfNeeded(Value,
StatusCode
);
41
int? IStatusCodeHttpResult.StatusCode =>
StatusCode
;
52
HttpResultsHelper.Log.WritingResultAsStatusCode(logger,
StatusCode
);
53
httpContext.Response.StatusCode =
StatusCode
;
Microsoft.AspNetCore.Http.Results.Tests (6)
NotFoundOfTResultTests.cs (3)
25
Assert.Equal(StatusCodes.Status404NotFound, result.
StatusCode
);
37
Assert.Equal(StatusCodes.Status404NotFound, notFound.
StatusCode
);
47
Assert.Equal(StatusCodes.Status404NotFound, notFound.
StatusCode
);
ResultsTests.cs (2)
1175
Assert.Equal(StatusCodes.Status404NotFound, result.
StatusCode
);
1189
Assert.Equal(StatusCodes.Status404NotFound, result.
StatusCode
);
TypedResultsTests.cs (1)
1019
Assert.Equal(StatusCodes.Status404NotFound, result.
StatusCode
);