예제 #1
0
 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());
예제 #2
0
 public static JiraUserDtoCollectionBuilder FromNames(params string[] name)
 => Empty().For(name.Length, (i, b) => b.Add(JiraUserDtoBuilder.FromDisplayName(name[i]).Build()));