public void FDReferenceALPassesValidReferences()
        {
            var model = new SupplementaryDataLooseModel
            {
                Reference = new string('1', 100)
            };
            var rule = new FDReferenceAL(_messageServiceMock.Object);

            Assert.True(rule.IsValid(model));
        }
Exemple #2
0
        public void FDReferenceALPassesValidReferences()
        {
            var model = new SupplementaryDataLooseModel
            {
                Reference = new string('1', 100)
            };
            var rule = new FDReferenceAL();

            Assert.True(rule.Execute(model));
        }
        public void FDReferenceALCatchesTooLongReferences()
        {
            var model = new SupplementaryDataLooseModel
            {
                Reference = new string('1', 101)
            };
            var rule = new FDReferenceAL(_messageServiceMock.Object);

            Assert.False(rule.IsValid(model));
        }
Exemple #4
0
        public void FDReferenceALCatchesTooLongReferences()
        {
            var model = new SupplementaryDataLooseModel
            {
                Reference = new string('1', 101)
            };
            var rule = new FDReferenceAL();

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