title: Moq: How to get to a parameter passed to a method of a mocked service
body: <p>Imagine this class</p>
  
  <pre><code>public class Foo {
  
      private Handler _h;
  
      public Foo(Handler h)
      {
          _h = h;
      }
  
      public void Bar(int i)
      {
          _h.AsyncHandle(CalcOn(i));
      }
  
      private SomeResponse CalcOn(int i)
      {
          ...;
      }
  }
  </code></pre>
  
  <p>Mo(q)cking Handler in a test of Foo, how would I be able to check what <code>Bar()</code> has passed to <code>_h.AsyncHandle</code>?</p>