Ejemplo n.º 1
0
        public void FDDeliverableCodeALPassesValidDeliverableCodes()
        {
            var model = new SupplementaryDataLooseModel
            {
                DeliverableCode = "1234567890"
            };
            var rule = new FDDeliverableCodeAL(_messageServiceMock.Object);

            Assert.True(rule.IsValid(model));
        }
Ejemplo n.º 2
0
        public void FDDeliverableCodeALCatchesTooLongDeliverableCodes()
        {
            var model = new SupplementaryDataLooseModel
            {
                DeliverableCode = "12345678901"
            };
            var rule = new FDDeliverableCodeAL();

            Assert.False(rule.Execute(model));
        }
Ejemplo n.º 3
0
        public void FDDeliverableCodeALCatchesTooLongDeliverableCodes()
        {
            var model = new SupplementaryDataLooseModel
            {
                DeliverableCode = "12345678901"
            };
            var rule = new FDDeliverableCodeAL(_messageServiceMock.Object);

            Assert.False(rule.IsValid(model));
        }
Ejemplo n.º 4
0
        public void FDDeliverableCodeALPassesValidDeliverableCodes()
        {
            var model = new SupplementaryDataLooseModel
            {
                DeliverableCode = "1234567890"
            };
            var rule = new FDDeliverableCodeAL();

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