示例#1
0
        public void LearnAimRef02FailsLearnAimRefFound(string deliverableCode)
        {
            var suppData = new SupplementaryDataModel
            {
                LearnAimRef     = "Foo",
                DeliverableCode = deliverableCode
            };

            var rule = new LearnAimRef02(_messageServiceMock.Object);

            Assert.False(rule.IsValid(suppData));
        }
示例#2
0
        public void LearnAimRef02PassesNoLearnAimRef(string deliverableCode)
        {
            var suppData = new SupplementaryDataModel
            {
                LearnAimRef     = null,
                DeliverableCode = deliverableCode
            };

            var rule = new LearnAimRef02(_messageServiceMock.Object);

            Assert.True(rule.IsValid(suppData));
        }
示例#3
0
        public void LearnAimRef02PassesIrrelevantDeliverableCode()
        {
            var suppData = new SupplementaryDataModel
            {
                LearnAimRef     = "Foo",
                DeliverableCode = "Foo"
            };

            var rule = new LearnAimRef02(_messageServiceMock.Object);

            Assert.True(rule.IsValid(suppData));
        }