Example #1
0
            public async Task UnfollowAnAuthor()
            {
                var authorId        = 1077326;
                var authorFollowing = await AuthorsFollowingClient.Follow(authorId);    // arrange following

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

                Assert.True(result);
            }
Example #2
0
            public async Task FollowAnAuthor()
            {
                var authorId        = 3173264;
                var authorFollowing = await AuthorsFollowingClient.Follow(authorId);

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

                Assert.NotNull(authorFollowing);
                Assert.NotSame(authorFollowing.Id, default(int));
            }
Example #3
0
            public async Task Show()
            {
                var authorId   = 4470846;
                var followInfo = await AuthorsFollowingClient.Follow(authorId); // arrange following

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

                await AuthorsFollowingClient.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);
            }