public void Should_Follow_And_Unfollow_User()
        {
            var api = new UserApi(GitHubUrl).WithAuthentication(ObjectFactory.GetInstance<IAuthenticator>());
            var user = api.GetUser("sgrassie");

            api.Follow("mono").Should().BeTrue("should follow the user mono");
            api.GetFollowing(user).Should().Contain(x => x.Login == "mono");

            api.UnFollow("mono").Should().BeTrue("Should unfollow the user mono");
            api.GetFollowing(user).Should().NotContain(x => x.Login == "mono");
        }
        public void WhenNotAuthenticatedFollowShouldThrowNotAuthenticatedException()
        {
            var api = new UserApi(GitHubUrl);
            var user = api.GetUser("sgrassie");

            Assert.Throws<GitHubAuthorizationException>(() => api.Follow("mono"));
        }