Implemented interface member:
property
StatusCode
Microsoft.AspNetCore.Http.IStatusCodeHttpResult.StatusCode
2 writes to StatusCode
Microsoft.AspNetCore.Http.Results (2)
JsonHttpResultOfT.cs (2)
37
StatusCode
= statusCode;
58
StatusCode
= statusCode;
13 references to StatusCode
Microsoft.AspNetCore.Http.Results (1)
JsonHttpResultOfT.cs (1)
97
if (
StatusCode
is { } statusCode)
Microsoft.AspNetCore.Http.Results.Tests (12)
JsonResultTests.cs (1)
239
Assert.Equal(StatusCodes.Status413RequestEntityTooLarge, result.
StatusCode
);
ResultsTests.cs (7)
945
Assert.Equal(statusCode, result.
StatusCode
);
964
Assert.Equal(statusCode, result.
StatusCode
);
977
Assert.Null(result.
StatusCode
);
990
Assert.Null(result.
StatusCode
);
1004
Assert.Null(result.
StatusCode
);
1018
Assert.Null(result.
StatusCode
);
1032
Assert.Null(result.
StatusCode
);
TypedResultsTests.cs (4)
840
Assert.Equal(statusCode, result.
StatusCode
);
856
Assert.Null(result.
StatusCode
);
872
Assert.Null(result.
StatusCode
);
889
Assert.Null(result.
StatusCode
);