public async Task <UserDto> GetUser() { string userName = await _client.GetUserName(); JiraUserDto jiraUser = await _client.GetUser(userName); return(jiraUser.ToUserDto()); }
public JiraWorkLogDtoBuilder Author(JiraUserDto author) => Set(w => w.Author = author);
public JiraWorkLogDtoCollectionBuilder Add(JiraUserDto author, int issueId, DateTime created) => Add(JiraWorkLogDtoBuilder.Filled() .Author(author) .IssueId(issueId) .Created(created) .Build());
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>(); }