System.Net.Http.AutoRedirectTests.Can_auto_redirect_with_absolute_location C# (CSharp) Метод

Can_auto_redirect_with_absolute_location() приватный Метод

private Can_auto_redirect_with_absolute_location ( int code ) : System.Threading.Tasks.Task
code int
Результат System.Threading.Tasks.Task
        public async Task Can_auto_redirect_with_absolute_location(int code)
        {
            using (var client = new HttpClient(_handler)
            {
                BaseAddress = new Uri("http://localhost")
            })
            {
                var response = await client.GetAsync($"/redirect-{code}-absolute");

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