public void FDReferenceTypeMAPassesValidReferenceTypes()
        {
            var model = new SupplementaryDataLooseModel
            {
                ReferenceType = new string('1', 20)
            };
            var rule = new FDReferenceTypeMA(_messageServiceMock.Object);

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

            Assert.True(rule.Execute(model));
        }
        public void FDReferenceTypeMACatchesEmptyReferenceTypes()
        {
            var model = new SupplementaryDataLooseModel
            {
                ReferenceType = null
            };
            var rule = new FDReferenceTypeMA(_messageServiceMock.Object);

            Assert.False(rule.IsValid(model));
        }
Example #4
0
        public void FDReferenceTypeMACatchesEmptyReferenceTypes()
        {
            var model = new SupplementaryDataLooseModel
            {
                ReferenceType = null
            };
            var rule = new FDReferenceTypeMA();

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