System.Net.Http.AutoRedirectTests.Does_not_redirect_on_POST_and_307 C# (CSharp) Method

Does_not_redirect_on_POST_and_307() private method

private Does_not_redirect_on_POST_and_307 ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task
        public async Task Does_not_redirect_on_POST_and_307()
        {
            using (var client = new HttpClient(_handler)
            {
                BaseAddress = new Uri("http://localhost")
            })
            {
                var response = await client.PostAsync("/redirect-307-absolute", new StringContent("the-body"));

                response.StatusCode.ShouldBe(HttpStatusCode.TemporaryRedirect);
                response.RequestMessage.RequestUri.AbsoluteUri.ShouldBe("http://localhost/redirect-307-absolute");
            }
        }