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

            Assert.True(rule.IsValid(model));
        }
コード例 #2
0
        public void FDReferenceTypeMACatchesEmptyReferenceTypes()
        {
            var model = new SupplementaryDataLooseModel
            {
                ReferenceType = null
            };
            var rule = new FDReferenceTypeMA(_messageServiceMock.Object);

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