コード例 #1
0
 public async Task ReplaceLabelsForIssue(long repositoryId, int issueNumber, string labels, GitHubClient authorizedGitHubClient)
 {
     await _issueRepository.ReplaceLabelsForIssue(repositoryId, issueNumber,
                                                  StringToStringArrayConverter.Convert(labels), authorizedGitHubClient);
 }
コード例 #2
0
        public void StringToStringArrayConverterForIrregularValues()
        {
            var result = StringToStringArrayConverter.Convert(" ,prajjwal,ayushpant1, yoyoman,r$3221,%343sdas, ");

            CollectionAssert.AreEqual(new[] { "prajjwal", "ayushpant1", "yoyoman", "r$3221", "%343sdas" }, result);
        }
コード例 #3
0
 public async Task <Issue> RemoveAssigneesFromIssue(string owner, string name, int number, string assignees,
                                                    GitHubClient authorizedGitHubClient)
 {
     return(await _issueRepository.RemoveAssigneesFromIssue(owner, name, number, new AssigneesUpdate(StringToStringArrayConverter.Convert(assignees)),
                                                            authorizedGitHubClient));
 }