/// <summary> /// Adds an assert step that the HTTP response was a see other (303 - redirect to a GET) to the specified url. /// </summary> /// <param name="fixture">The fixture.</param> /// <param name="redirectUrl">The redirect URL.</param> /// <returns></returns> public static IMvcFunctionalTestFixture ShouldReturnSeeOther(this IMvcFunctionalTestFixture fixture, string redirectUrl) => fixture.ShouldReturnRedirect(HttpStatusCode.SeeOther, redirectUrl);
/// <summary> /// Adds an assert step that the HTTP response was a temporary redirect (307) to the specified url. /// </summary> /// <param name="fixture">The fixture.</param> /// <param name="redirectUrl">The redirect URL.</param> /// <returns></returns> public static IMvcFunctionalTestFixture ShouldReturnTemporaryRedirect(this IMvcFunctionalTestFixture fixture, string redirectUrl) => fixture.ShouldReturnRedirect(HttpStatusCode.TemporaryRedirect, redirectUrl);
/// <summary> /// Adds an assert step that the HTTP response was a permanent redirect (301) to the specified url. /// </summary> /// <param name="fixture">The fixture.</param> /// <param name="redirectUrl">The redirect URL.</param> /// <returns></returns> public static IMvcFunctionalTestFixture ShouldReturnPermanentRedirect(this IMvcFunctionalTestFixture fixture, string redirectUrl) => fixture.ShouldReturnRedirect(HttpStatusCode.Moved, redirectUrl);