Ejemplo n.º 1
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;
        }
Ejemplo n.º 2
0
		private void OnInvalidRule(object sender, TestRuleInvalidRuleEventArgs e)
		{
			PowwaAuthorizationManager powwaAuthorizationManager = this;
			powwaAuthorizationManager.invalidRules = powwaAuthorizationManager.invalidRules + 1;
		}
		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;
		}