public void LearnAimRef02FailsLearnAimRefFound(string deliverableCode) { var suppData = new SupplementaryDataModel { LearnAimRef = "Foo", DeliverableCode = deliverableCode }; var rule = new LearnAimRef02(_messageServiceMock.Object); Assert.False(rule.IsValid(suppData)); }
public void LearnAimRef02PassesNoLearnAimRef(string deliverableCode) { var suppData = new SupplementaryDataModel { LearnAimRef = null, DeliverableCode = deliverableCode }; var rule = new LearnAimRef02(_messageServiceMock.Object); Assert.True(rule.IsValid(suppData)); }
public void LearnAimRef02PassesIrrelevantDeliverableCode() { var suppData = new SupplementaryDataModel { LearnAimRef = "Foo", DeliverableCode = "Foo" }; var rule = new LearnAimRef02(_messageServiceMock.Object); Assert.True(rule.IsValid(suppData)); }