예제 #1
0
        public void FDULNALCatchesTooLongULNs()
        {
            var model = new SupplementaryDataLooseModel
            {
                ULN = "12345678901"
            };
            var rule = new FDULNAL();

            Assert.False(rule.Execute(model));
        }
        public void FDULNALPassesValidULNs()
        {
            var model = new SupplementaryDataLooseModel
            {
                ULN = "1234567890"
            };
            var rule = new FDULNAL(_messageServiceMock.Object);

            Assert.True(rule.IsValid(model));
        }
예제 #3
0
        public void FDULNALPassesValidULNs()
        {
            var model = new SupplementaryDataLooseModel
            {
                ULN = "1234567890"
            };
            var rule = new FDULNAL();

            Assert.True(rule.Execute(model));
        }
        public void FDULNALCatchesTooLongULNs()
        {
            var model = new SupplementaryDataLooseModel
            {
                ULN = "12345678901"
            };
            var rule = new FDULNAL(_messageServiceMock.Object);

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