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");
}
}