public async Task UnfollowAnAuthor()
            {
                var authorId        = 1077326;
                var authorFollowing = await AuthorsFollowingEndpoint.Follow(authorId);    // arrange following

                var result = await AuthorsFollowingEndpoint.Unfollow(authorFollowing.Id); // cleanup following

                Assert.True(result);
            }
            public async Task FollowAnAuthor()
            {
                var authorId        = 3173264;
                var authorFollowing = await AuthorsFollowingEndpoint.Follow(authorId);

                await AuthorsFollowingEndpoint.Unfollow(authorFollowing.Id); // cleanup following

                Assert.NotNull(authorFollowing);
                Assert.NotEqual(default(long), authorFollowing.Id);
            }
            public async Task Show()
            {
                var authorId   = 4470846;
                var followInfo = await AuthorsFollowingEndpoint.Follow(authorId); // arrange following

                var responseInfo = await AuthorsFollowingEndpoint.Show(followInfo.Id);

                await AuthorsFollowingEndpoint.Unfollow(followInfo.Id); // cleanup following

                Assert.NotNull(responseInfo);
                Assert.Equal(followInfo.Id, responseInfo.Id);
                Assert.Equal(followInfo.Author.Id, responseInfo.Author.Id);
                Assert.Equal(followInfo.User.Id, responseInfo.User.Id);
            }
 public OAuthGoodreadsClient(string apiKey, string apiSecret, string accessToken, string accessSecret)
     : base(apiKey, apiSecret, accessToken, accessSecret)
 {
     Authors          = new AuthorsEnpoint(_connection);
     AuthorsFollowing = new AuthorsFollowingEndpoint(_connection);
     Books            = new BooksEndpoint(_connection);
     Comments         = new CommentsEndpoint(_connection);
     Events           = new EventsEndpoint(_connection);
     Followers        = new FollowersEndpoint(_connection);
     Friends          = new FriendsEndpoint(_connection);
     Groups           = new GroupsEndpoint(_connection);
     Notifications    = new NotificationsEndpoint(_connection);
     OwnedBooks       = new OwnedBooksEndpoint(_connection);
     Quotes           = new QuotesEndpoint(_connection);
     ReadStatuses     = new ReadStatusesEndpoint(_connection);
     Recommendations  = new RecommendationsEndpoint(_connection);
     Reviews          = new ReviewsEndpoint(_connection);
     Series           = new SeriesEndpoint(_connection);
     Shelves          = new ShelvesEndpoint(_connection);
     Topics           = new TopicsEndpoint(_connection);
     Updates          = new UpdatesEndpoint(_connection);
     Users            = new UsersEndpoint(_connection);
     UserStatuses     = new UserStatusesEndpoint(_connection);
 }
            public async Task ShowNotExistingInfo()
            {
                var responseInfo = await AuthorsFollowingEndpoint.Show(51523178);

                Assert.Null(responseInfo);
            }