public static JiraWorkLogDtoBuilder Filled() => Empty() .Id(_rand.Next(0, 10000000)) .IssueId(_rand.Next(0, 10000000)) .TimeSpentSeconds(_rand.Next(60, 60 * 60 * 8)) .Created(DateTime.UtcNow.AddDays((int)_rand.Next(0, 10))) .Author(JiraUserDtoBuilder.FromDisplayName(_rand.Next(10000).ToString()).Build());
public static JiraUserDtoCollectionBuilder FromNames(params string[] name) => Empty().For(name.Length, (i, b) => b.Add(JiraUserDtoBuilder.FromDisplayName(name[i]).Build()));
public JiraWorkLogDtoBuilder Author(Func <JiraUserDtoBuilder, JiraUserDtoBuilder> action) => Author(action(JiraUserDtoBuilder.Empty()).Build());