Example #1
0
    public async Task CanGetForPullRequest()
    {
        var pullRequest = await CreatePullRequest(_context);

        const int position         = 1;
        var       commentsToCreate = new List <string> {
            "Comment 1", "Comment 2", "Comment 3"
        };

        await CreateComments(commentsToCreate, position, _context.RepositoryName, pullRequest.Sha, pullRequest.Number);

        var pullRequestComments = await _client.GetAll(Helper.UserName, _context.RepositoryName, pullRequest.Number);

        AssertComments(pullRequestComments, commentsToCreate, position);
    }