Beispiel #1
0
        public void FDCostTypeALCatchesTooLongCostTypes()
        {
            var model = new SupplementaryDataLooseModel
            {
                CostType = "123456789012345678901"
            };
            var rule = new FDCostTypeAL();

            Assert.False(rule.Execute(model));
        }
        public void FDCostTypeALPassesValidCostTypes()
        {
            var model = new SupplementaryDataLooseModel
            {
                CostType = "12345678901234567890"
            };
            var rule = new FDCostTypeAL(_messageServiceMock.Object);

            Assert.True(rule.IsValid(model));
        }
Beispiel #3
0
        public void FDCostTypeALPassesValidCostTypes()
        {
            var model = new SupplementaryDataLooseModel
            {
                CostType = "12345678901234567890"
            };
            var rule = new FDCostTypeAL();

            Assert.True(rule.Execute(model));
        }
        public void FDCostTypeALCatchesTooLongCostTypes()
        {
            var model = new SupplementaryDataLooseModel
            {
                CostType = "123456789012345678901"
            };
            var rule = new FDCostTypeAL(_messageServiceMock.Object);

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