public void SupplementaryDataPanelDate02FailsDateBeforeStartDate() { var suppData = new SupplementaryDataModel { SupplementaryDataPanelDate = new DateTime(2019, 3, 31) }; var rule = new SupplementaryDataPanelDate02(_messageServiceMock.Object); Assert.False(rule.IsValid(suppData)); }
public void SupplementaryDataPanelDate02PassesNoSupplementaryDataPanelDate() { var suppData = new SupplementaryDataModel { SupplementaryDataPanelDate = null }; var rule = new SupplementaryDataPanelDate02(_messageServiceMock.Object); Assert.True(rule.IsValid(suppData)); }
public void SupplementaryDataPanelDate02PassesSupplementaryDataPanelDateAfterStartDate() { var suppData = new SupplementaryDataModel { SupplementaryDataPanelDate = new DateTime(2019, 4, 1) }; var rule = new SupplementaryDataPanelDate02(_messageServiceMock.Object); Assert.True(rule.IsValid(suppData)); }