public void NoContent_ResultHasCorrectValues()
    {
        // Act
        var result = TypedResults.NoContent();

        // Assert
        Assert.Equal(StatusCodes.Status204NoContent, result.StatusCode);
    }
Beispiel #2
0
 /// <summary>
 /// Produces a <see cref="StatusCodes.Status204NoContent"/> response.
 /// </summary>
 /// <returns>The created <see cref="IResult"/> for the response.</returns>
 public static IResult NoContent()
 => TypedResults.NoContent();