Esempio n. 1
0
        public void FDDeliverableCodeMAPassesValidDeliverableCodes()
        {
            var model = new SupplementaryDataLooseModel
            {
                DeliverableCode = "1234567890"
            };
            var rule = new FDDeliverableCodeMA(_messageServiceMock.Object);

            Assert.True(rule.IsValid(model));
        }
Esempio n. 2
0
        public void FDDeliverableCodeMACatchesEmptyDeliverableCodes()
        {
            var model = new SupplementaryDataLooseModel
            {
                DeliverableCode = null
            };
            var rule = new FDDeliverableCodeMA(_messageServiceMock.Object);

            Assert.False(rule.IsValid(model));
        }