Esempio n. 1
0
        public void Every150MinutesWithNoStartAndEndTime()
        {
            var template = new MinuteScheduleTemplate(150);

            var actual = template.GetTimes();

            actual.Should().Equal(new Time[] {
                new Time(00, 00, 00),
                new Time(02, 30, 00),
                new Time(05, 00, 00),
                new Time(07, 30, 00),
                new Time(10, 00, 00),
                new Time(12, 30, 00),
                new Time(15, 00, 00),
                new Time(17, 30, 00),
                new Time(20, 00, 00),
                new Time(22, 30, 00),
            });
        }
Esempio n. 2
0
        public void Every15MinutesBetween10And12()
        {
            var template = new MinuteScheduleTemplate(15);

            template.From(10, 00);
            template.To(12, 00);

            var actual = template.GetTimes();

            actual.Should().Equal(new Time[] {
                new Time(10, 00, 00),
                new Time(10, 15, 00),
                new Time(10, 30, 00),
                new Time(10, 45, 00),
                new Time(11, 00, 00),
                new Time(11, 15, 00),
                new Time(11, 30, 00),
                new Time(11, 45, 00),
                new Time(12, 00, 00)
            });
        }