コード例 #1
0
        public void StaffNameRule03PassesEmptyStaffNamesWhenNotRequired()
        {
            var model = new SupplementaryDataModel
            {
                ReferenceType = "Other",
                StaffName     = null
            };

            var rule = new StaffNameRule03();

            Assert.True(rule.Execute(model));
        }
コード例 #2
0
        public void StaffNameRule03CatchesNotRequiredStaffName()
        {
            var model = new SupplementaryDataModel
            {
                ReferenceType = "Other",
                StaffName     = "Mr Bob"
            };

            var rule = new StaffNameRule03();

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