public void FDCalendarYearDTPassesValidYears() { var model = new SupplementaryDataLooseModel { CalendarYear = "2010" }; var rule = new FDCalendarYearDT(_messageServiceMock.Object); Assert.True(rule.IsValid(model)); }
public void FDCalendarYearDTCatchesInvalidYears() { var model = new SupplementaryDataLooseModel { CalendarYear = null }; var rule = new FDCalendarYearDT(_messageServiceMock.Object); Assert.False(rule.IsValid(model)); }