コード例 #1
0
        public void AddBrokenRule(BrokenRule brokenRule)
        {
            _BrokenRules.Add(brokenRule);

            switch (brokenRule.Severity)
            {
            case RuleSeverity.Error:
                _ErrorCount = _ErrorCount + 1;
                break;

            case RuleSeverity.Warning:
                _WarningCount = _WarningCount + 1;
                break;

            case RuleSeverity.Information:
                _InfoCount = _InfoCount + 1;
                break;

            case RuleSeverity.Success:
                _SuccessCount = _SuccessCount + 1;
                break;

            default:
                break;
            }
        }
コード例 #2
0
        public void AddBrokenRule(RuleSeverity severity, string description, string technical, string key)
        {
            BrokenRule _BrokenRule = new BrokenRule(severity, description, technical, key);

            _BrokenRules.Add(_BrokenRule);

            switch (severity)
            {
            case RuleSeverity.Error:
                _ErrorCount = _ErrorCount + 1;
                break;

            case RuleSeverity.Warning:
                _WarningCount = _WarningCount + 1;
                break;

            case RuleSeverity.Information:
                _InfoCount = _InfoCount + 1;
                break;

            case RuleSeverity.Success:
                _SuccessCount = _SuccessCount + 1;
                break;

            default:
                break;
            }
        }