Skip to content

Commit

Permalink
Add helper function for creating an empty release schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
limemloh committed Sep 23, 2024
1 parent b8a1eb3 commit 34fe6f3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Types/ReleaseSchedule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,10 @@ IList<Release> Schedules
CcdAmount.From(schedule.Total),
schedule.Schedules.Select(Release.From).ToList()
);

/// <summary>
/// Construct an empty <see cref="ReleaseSchedule"/>.
/// Useful for writing test cases.
/// </summary>
public static ReleaseSchedule Empty() => new(CcdAmount.Zero, new List<Release>());
}

0 comments on commit 34fe6f3

Please sign in to comment.