public void FDCalendarMonthALPassesValidMonths()
        {
            var model = new SupplementaryDataLooseModel
            {
                CalendarMonth = "10"
            };
            var rule = new FDCalendarMonthAL(_messageServiceMock.Object);

            Assert.True(rule.IsValid(model));
        }
Beispiel #2
0
        public void FDCalendarMonthALCatchesInvalidMonths()
        {
            var model = new SupplementaryDataLooseModel
            {
                CalendarMonth = "1612"
            };
            var rule = new FDCalendarMonthAL();

            Assert.False(rule.Execute(model));
        }
        public void FDCalendarMonthALCatchesInvalidMonths()
        {
            var model = new SupplementaryDataLooseModel
            {
                CalendarMonth = "1612"
            };
            var rule = new FDCalendarMonthAL(_messageServiceMock.Object);

            Assert.False(rule.IsValid(model));
        }
Beispiel #4
0
        public void FDCalendarMonthALPassesValidMonths()
        {
            var model = new SupplementaryDataLooseModel
            {
                CalendarMonth = "10"
            };
            var rule = new FDCalendarMonthAL();

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