コード例 #1
0
ファイル: StarMethodsTest.cs プロジェクト: ats124/backlog4net
        public async Task AddStarToPullRequestAndCommentTestAsync()
        {
            var gitrepos = await client.GetGitRepositoriesAsync(projectId);

            var pullRequests = await client.GetPullRequestsAsync(projectId, gitrepos.First().Id);

            await client.AddStarToPullRequestAsync(pullRequests.First().Id);

            var pullRequestComments = await client.GetPullRequestCommentsAsync(projectId, gitrepos.First().Id, pullRequests.First().Number, new QueryParams()
            {
            });

            await client.AddStarToPullRequestCommentAsync(pullRequestComments.First().Id);
        }