예제 #1
0
        public void FDCalendarMonthDTPassesValidMonths()
        {
            var model = new SupplementaryDataLooseModel
            {
                CalendarMonth = "10"
            };
            var rule = new FDCalendarMonthDT();

            Assert.True(rule.Execute(model));
        }
예제 #2
0
        public void FDCalendarMonthDTCatchesInvalidMonths()
        {
            var model = new SupplementaryDataLooseModel
            {
                CalendarMonth = null
            };
            var rule = new FDCalendarMonthDT();

            Assert.False(rule.Execute(model));
        }