public async Task GetRecentUsersStatuses()
            {
                var statuses = await UserStatusesEndpoint.GetRecentUsersStatuses();

                Assert.NotNull(statuses);
                Assert.NotEmpty(statuses);
            }
            public async Task Delete()
            {
                // arrange status
                var id = await UserStatusesEndpoint.Create(18667945, percent : 1, comment : "Not bad");

                var result = await UserStatusesEndpoint.Delete(id);

                Assert.True(result);
            }
            public async Task Create()
            {
                const int bookId = 186;
                var       id     = await UserStatusesEndpoint.Create(bookId, percent : 42, comment : "Really cool!");

                // clean up status
                await UserStatusesEndpoint.Delete(id);

                Assert.NotEqual(default(long), id);
            }
            public async Task GetUserStatus()
            {
                const int id     = 138141943;
                var       status = await UserStatusesEndpoint.GetUserStatus(id);

                Assert.NotNull(status);
                Assert.Equal(status.Id, id);
                Assert.NotNull(status.User);
                Assert.NotNull(status.Book);
            }
 public UnauthorizedGoodreadsClient(string apiKey, string apiSecret, string accessToken, string accessSecret)
     : base(apiKey, apiSecret, accessToken, accessSecret)
 {
     Authors      = new AuthorsEnpoint(_connection);
     Books        = new BooksEndpoint(_connection);
     Shelves      = new ShelvesEndpoint(_connection);
     Users        = new UsersEndpoint(_connection);
     Reviews      = new ReviewsEndpoint(_connection);
     Series       = new SeriesEndpoint(_connection);
     Events       = new EventsEndpoint(_connection);
     Groups       = new GroupsEndpoint(_connection);
     UserStatuses = new UserStatusesEndpoint(_connection);
     ReadStatuses = new ReadStatusesEndpoint(_connection);
     Comments     = new CommentsEndpoint(_connection);
     Topics       = new TopicsEndpoint(_connection);
 }
 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);
 }