Example #1
0
        private void OnRuleMatch(object sender, TestRuleRuleMatchEventArgs e)
        {
            base.WriteObject(e.Rule);
            TestPswaAuthorizationRuleCommand testPswaAuthorizationRuleCommand = this;

            testPswaAuthorizationRuleCommand.matches = testPswaAuthorizationRuleCommand.matches + 1;
        }
Example #2
0
        private void OnInvalidRule(object sender, TestRuleInvalidRuleEventArgs e)
        {
            object[] ruleName = new object[3];
            ruleName[0] = e.Rule.RuleName;
            ruleName[1] = e.Rule.Id;
            ruleName[2] = e.Exception.Message;
            base.WriteWarning(string.Format(CultureInfo.CurrentCulture, Resources.TestRule_Warning, ruleName));
            TestPswaAuthorizationRuleCommand testPswaAuthorizationRuleCommand = this;

            testPswaAuthorizationRuleCommand.warnings = testPswaAuthorizationRuleCommand.warnings + 1;
        }