private static Dictionary <Hour, int> __scheduleArrivals(int arrivalsPerMonth, int lengthInHours) { Dictionary <Hour, int> schedule = new Dictionary <Hour, int>(); SimulationTimeSpan timespan = new SimulationTimeSpan(new Hour(0), new Hour(lengthInHours - 1)); Hour hour = new Hour(0); while (hour <= timespan.End) { schedule[hour] = arrivalsPerMonth; hour = hour.FirstHourOfNextMonth(); } return(schedule); }
public void FirstHourOfNextMonthTest() { Assert.AreEqual(firstHourOfMonth1, zero.FirstHourOfNextMonth()); Assert.AreEqual(firstHourOfMonth1, ten.FirstHourOfNextMonth()); }