コード例 #1
0
        public void AddCommentToMergeRequest()
        {
            const string commentMessage = "note";
            var newComment = new MergeRequestComment {Note = commentMessage};

            var mergeRequest = _mergeRequestComments.Add(newComment);

            Assert.That(mergeRequest.Note, Is.EqualTo(commentMessage));
        }
コード例 #2
0
 public Comment Add(MergeRequestComment comment)
 {
     return _api.Post().With(comment).To<Comment>(_commentsPath);
 }