예제 #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)));
예제 #5
0
 private JiraUserDtoBuilder()
 {
     _user            = new JiraUserDto();
     _user.AvatarUrls = new Dictionary <string, string>();
 }