Exemple #1
0
 private static Estimate AsEffortEstimate(Issue issue) => new EffortEstimate
 {
     Points = double.Parse(issue["Story Points"]?.Value ?? "0")
 };
Exemple #2
0
 private static Estimate AsDurationEstimate(Issue issue) => new DurationEstimate();
Exemple #3
0
 private static Estimate GetEstimate(Issue issue) =>
 IsSpike(issue)
         ? AsDurationEstimate(issue)
         : AsEffortEstimate(issue);
Exemple #4
0
 private static bool IsSpike(Issue issue) =>
 issue.Type.Name == "Spike";
Exemple #5
0
 private static async Task <ICollection <StatusTransition> > GetTransitionsAsync(Issue issue) =>
 (await issue.GetChangeLogsAsync())
 .Where(IsStatusChange)
 .Select(AsStatusTransition)
 .ToList();