Exemplo n.º 1
0
        private void LoadAuditGroup(string xmlGroup)
        {
            ListViewItem currViewItem;
            Audit currAudit;
            int NodeCount;

            lsvAudits.Items.Clear();

            _audits = new AuditController(xmlGroup);

            lblAuditGroup.Text = _audits.AuditGroupName;

            foreach (Audit currItem in _audits.AuditGroup)
            {
                currAudit = currItem;

                currViewItem = lsvAudits.Items.Add(currAudit.Name, 0);

                currViewItem.Tag = currAudit;

                currViewItem.SubItems[0].Text = currAudit.Name;
                currViewItem.SubItems.Add("");
                currViewItem.SubItems.Add("");
            }
        }
Exemplo n.º 2
0
        private static void ProcessAudits(string auditGroupFile)
        {
            var colAudits = new AuditController(auditGroupFile);

            _auditTesting = new AuditTesting(colAudits.AuditGroup);

            // Wire up the events
            _auditTesting.AuditTestingStarting += _auditTesting_AuditTestingStarting;
            _auditTesting.CurrentAuditRunning += _auditTesting_CurrentAuditRunning;
            _auditTesting.CurrentAuditDone += _auditTesting_CurrentAuditDone;

            _auditTesting.RunAudits();

            Console.WriteLine("DataAuditor ran {0} test(s).", _auditTesting.Audits.Count);
        }