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); }