public void ULNRule01PassesPopulatedULNs() { var model = new SupplementaryDataModel { ReferenceType = "LearnRefNumber", ULN = 1990909009 }; var rule = new ULNRule01(_messageServiceMock.Object); Assert.True(rule.IsValid(model)); }
public void ULNRule01PassesPopulatedULNs() { var model = new SupplementaryDataModel { ReferenceType = "LearnRefNumber", ULN = 1990909009 }; var rule = new ULNRule01(); Assert.True(rule.Execute(model)); }
public void ULNRule01CatchesEmptyULNs() { var model = new SupplementaryDataModel { ReferenceType = "LearnRefNumber", ULN = null }; var rule = new ULNRule01(_messageServiceMock.Object); Assert.False(rule.IsValid(model)); }
public void ULNRule01CatchesEmptyULNs() { var model = new SupplementaryDataModel { ReferenceType = "LearnRefNumber", ULN = null }; var rule = new ULNRule01(); Assert.False(rule.Execute(model)); }