public void StopCounting(MockCounter<ILogger> logCounter)
 {
     lock (this.lockObject)
     {
         logCounter.Dispose();
         this.currentCounters.Remove(logCounter);
     }
 }
 public MockCounter<ILogger> StartCounting(Expression<Action<ILogger>> setupAction)
 {
     lock (this.lockObject)
     {
         var counter = new MockCounter<ILogger>(this.wrappedMock, setupAction);
         this.currentCounters.Add(counter);
         return counter;
     }
 }