public void Exclude_False() { var learningDelivery = new TestLearningDelivery() { LearningDeliveryFAMs = new TestLearningDeliveryFAM[] { } }; var learningDeliveryFAMQueryServiceMock = new Mock <ILearningDeliveryFAMQueryService>(); learningDeliveryFAMQueryServiceMock.Setup(qs => qs.HasLearningDeliveryFAMCodeForType(learningDelivery.LearningDeliveryFAMs, "ACT", "1")).Returns(false); var rule = new ULN_03Rule(null, null, learningDeliveryFAMQueryServiceMock.Object, null); rule.Exclude(learningDelivery).Should().BeFalse(); }
public void Exclude_False_NoMatch() { var rule = new ULN_03Rule(null, null); var learningDelivery = new MessageLearnerLearningDelivery() { LearningDeliveryFAM = new MessageLearnerLearningDeliveryLearningDeliveryFAM[] { new MessageLearnerLearningDeliveryLearningDeliveryFAM() { LearnDelFAMType = "ACT", LearnDelFAMCode = "2" } } }; rule.Exclude(learningDelivery).Should().BeFalse(); }