public async Task can_follow_is_true_when_rel_does_not_exist() { var testServer = TestServer.Create<StartUp>(); var client = new HyperFriendlyHttpClient(testServer.HttpClient, Uris.Home); await client.RootAsync(); var canFollow = client.CanFollow("not_a_resource"); canFollow.ShouldBeFalse(); }
public async Task can_follow_is_true_when_location_header_exists() { var testServer = TestServer.Create<StartUp>(); var client = new HyperFriendlyHttpClient(testServer.HttpClient, Uris.Home); await client.RootAsync(); await client.FollowAsync("redirecting_resource"); var canFollow = client.CanFollow(); canFollow.ShouldBeTrue(); }