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

Can_auto_redirect_with_relative_location() private method

private Can_auto_redirect_with_relative_location ( int code ) : System.Threading.Tasks.Task
code int
return System.Threading.Tasks.Task
        public async Task Can_auto_redirect_with_relative_location(int code)
        {
            using (var client = new HttpClient(_handler)
            {
                BaseAddress = new Uri("http://localhost")
            })
            {
                var response = await client.GetAsync($"/redirect-{code}-relative");

                response.StatusCode.ShouldBe(HttpStatusCode.OK);
                response.RequestMessage.RequestUri.AbsoluteUri.ShouldBe("http://localhost/redirect");
            }
        }