public void ULNRule04PassesEmptyULNsWhenNotRequired() { var model = new SupplementaryDataModel { ReferenceType = "Other", ULN = null }; var rule = new ULNRule04(_messageServiceMock.Object); Assert.True(rule.IsValid(model)); }
public void ULNRule04CatchesULNsWhenNotRequired() { var model = new SupplementaryDataModel { ReferenceType = "Other", ULN = 1990909009 }; var rule = new ULNRule04(_messageServiceMock.Object); Assert.False(rule.IsValid(model)); }