public void TestConstructorWithITraceClient()
        {
            MockTraceClient client = new MockTraceClient();

            TraceAuditManager helper = new TraceAuditManager(client);
        }
 public void TestConstructorWithoutITraceClient()
 {
     TraceAuditManager helper = new TraceAuditManager(null);
 }
Beispiel #3
0
 private void LoadAuditManager()
 {
     try
     {
         m_auditManager = new TraceAuditManager(this);
         m_auditManager.FcsScanner.OnFolderCountStart += OnFcsFolderCountStarted;
         m_auditManager.FcsScanner.OnFolderCount += OnFcsFolderCountProgress;
         m_auditManager.FcsScanner.OnFolderCountCompleted += OnFcsFolderCountCompleted;
     }
     catch (COMException e)
     {
         System.Diagnostics.Trace.WriteLine("Cannot access Email - " + e.Message);
         const MessageBoxOptions options = 0;
         MessageBox.Show(this, Properties.Resources.EMAIL_NOACCESS,
                                 Properties.Resources.EMAIL_NOACCESS_CAPTION,
                                 MessageBoxButtons.OK,
                                 MessageBoxIcon.Error,
                                 MessageBoxDefaultButton.Button1,
                                 options);
         throw;
     }
 }