Esempio n. 1
0
        public void FDStaffNameALCatchesTooLongStaffNames()
        {
            var model = new SupplementaryDataLooseModel
            {
                StaffName = new string('1', 101)
            };
            var rule = new FDStaffNameAL();

            Assert.False(rule.Execute(model));
        }
Esempio n. 2
0
        public void FDStaffNameALPassesValidStaffNames()
        {
            var model = new SupplementaryDataLooseModel
            {
                StaffName = new string('1', 100)
            };
            var rule = new FDStaffNameAL();

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