/// <summary>
 /// Initializes a new instance of the <see cref="ObserverManager"/> class.
 /// </summary>
 public ObserverManager(ObserverBase observer)
 {
     this.cts   = new CancellationTokenSource();
     this.token = this.cts.Token;
     this.token.Register(() => { this.ShutdownHandler(this, null); });
     this.Logger         = new Logger("ObserverManagerSingleObserverRun");
     this.HealthReporter = new ObserverHealthReporter(this.Logger);
     this.observers      = new List <ObserverBase>(new ObserverBase[]
     {
         observer,
     });
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="ObserverManager"/> class.
        /// This is for unit testing purposes.
        /// </summary>
        public ObserverManager(ObserverBase observer)
        {
            this.cts   = new CancellationTokenSource();
            this.token = this.cts.Token;
            this.token.Register(() => { this.ShutdownHandler(this, null); });
            this.Logger         = new Logger("ObserverManagerSingleObserverRun");
            this.HealthReporter = new ObserverHealthReporter(this.Logger);

            // The unit tests expect file output from some observers.
            ObserverWebAppDeployed = true;

            this.observers = new List <ObserverBase>(new ObserverBase[]
            {
                observer,
            });
        }