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 async Task ShowNotExistingInfo() { var responseInfo = await AuthorsFollowingEndpoint.Show(51523178); Assert.Null(responseInfo); }