public void FDReferenceTypeALCatchesTooLongReferenceTypes()
        {
            var model = new SupplementaryDataLooseModel
            {
                ReferenceType = new string('1', 21)
            };
            var rule = new FDReferenceTypeAL(_messageServiceMock.Object);

            Assert.False(rule.IsValid(model));
        }
Example #2
0
        public void FDReferenceTypeALPassesValidReferenceTypes()
        {
            var model = new SupplementaryDataLooseModel
            {
                ReferenceType = new string('1', 20)
            };
            var rule = new FDReferenceTypeAL();

            Assert.True(rule.Execute(model));
        }
        public void FDReferenceTypeALPassesValidReferenceTypes()
        {
            var model = new SupplementaryDataLooseModel
            {
                ReferenceType = new string('1', 20)
            };
            var rule = new FDReferenceTypeAL(_messageServiceMock.Object);

            Assert.True(rule.IsValid(model));
        }
Example #4
0
        public void FDReferenceTypeALCatchesTooLongReferenceTypes()
        {
            var model = new SupplementaryDataLooseModel
            {
                ReferenceType = new string('1', 21)
            };
            var rule = new FDReferenceTypeAL();

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