示例#1
0
        public async Task <UserDto> GetUser()
        {
            string userName = await _client.GetUserName();

            JiraUserDto jiraUser = await _client.GetUser(userName);

            return(jiraUser.ToUserDto());
        }
示例#2
0
 public JiraWorkLogDtoBuilder Author(JiraUserDto author) => Set(w => w.Author = author);
示例#3
0
 public JiraWorkLogDtoCollectionBuilder Add(JiraUserDto author, int issueId, DateTime created)
 => Add(JiraWorkLogDtoBuilder.Filled()
        .Author(author)
        .IssueId(issueId)
        .Created(created)
        .Build());
示例#4
0
 public JiraWorkLogDtoCollectionBuilder AddManyForAuthor(JiraUserDto author,
                                                         int count,
                                                         int issueId,
                                                         DateTime start,
                                                         DateTime end)
 => For(count, () => Add(author, issueId, GetRandomDateTime(start, end)));
 private JiraUserDtoBuilder()
 {
     _user            = new JiraUserDto();
     _user.AvatarUrls = new Dictionary <string, string>();
 }