/// <summary> /// Adds an assert step that the HTTP response had a bad request (400) status code. /// </summary> /// <param name="fixture">The fixture.</param> /// <returns></returns> public static IMvcFunctionalTestFixture ShouldReturnBadRequest(this IMvcFunctionalTestFixture fixture) => fixture.ShouldReturnStatus(HttpStatusCode.BadRequest);
/// <summary> /// Adds an assert step that the HTTP response had a internal server error (500) status code. /// </summary> /// <param name="fixture">The fixture.</param> /// <returns></returns> public static IMvcFunctionalTestFixture ShouldReturnInternalServerError(this IMvcFunctionalTestFixture fixture) => fixture.ShouldReturnStatus(HttpStatusCode.InternalServerError);
/// <summary> /// Adds an assert step that the HTTP response had a forbidden (403) status code. /// </summary> /// <param name="fixture">The fixture.</param> /// <returns></returns> public static IMvcFunctionalTestFixture ShouldReturnForbidden(this IMvcFunctionalTestFixture fixture) => fixture.ShouldReturnStatus(HttpStatusCode.Forbidden);
/// <summary> /// Adds an assert step that the HTTP response had a not found (404) status code. /// </summary> /// <param name="fixture">The fixture.</param> /// <returns></returns> public static IMvcFunctionalTestFixture ShouldReturnNotFound(this IMvcFunctionalTestFixture fixture) => fixture.ShouldReturnStatus(HttpStatusCode.NotFound);
/// <summary> /// Adds an assert step that the HTTP response had an unauthorized (401) status code. /// </summary> /// <param name="fixture">The fixture.</param> /// <returns></returns> public static IMvcFunctionalTestFixture ShouldReturnUnauthorized(this IMvcFunctionalTestFixture fixture) => fixture.ShouldReturnStatus(HttpStatusCode.Unauthorized);