示例#1
0
        public void JudgeEnforcePass()
        {
            // The default Advise implementation for JudgeDummy is to always return true.
            var judgeDummy = new JudgeDummy();

            judgeDummy.Enforce("any-law");
        }
示例#2
0
        public void JudgeEnforceFail()
        {
            // JudgeDummy evil twin that always Advise to false (just like
            //the real Judge Death)
            var judgeDeath = new JudgeDummy((l, a) => false);

            judgeDeath.Enforce("any-law");
        }