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

            var errors = template.Validate();

            errors.Should().BeEquivalentTo(new string[] { "Time must be less than 1 day" });
        }
Esempio n. 2
0
        public void ValidateEveryMinuteNotZero()
        {
            var template = new MinuteScheduleTemplate(0);

            var errors = template.Validate();

            errors.Should().Equal(new string[] { "Time must be less than 1 day" });
        }