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

            Assert.True(rule.IsValid(model));
        }
Пример #2
0
        public void FDReferenceMAPassesValidReferences()
        {
            var model = new SupplementaryDataLooseModel
            {
                Reference = new string('1', 100)
            };
            var rule = new FDReferenceMA();

            Assert.True(rule.Execute(model));
        }
        public void FDReferenceMACatchesEmptyReferences()
        {
            var model = new SupplementaryDataLooseModel
            {
                Reference = null
            };
            var rule = new FDReferenceMA(_messageServiceMock.Object);

            Assert.False(rule.IsValid(model));
        }
Пример #4
0
        public void FDReferenceMACatchesEmptyReferences()
        {
            var model = new SupplementaryDataLooseModel
            {
                Reference = null
            };
            var rule = new FDReferenceMA();

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