title: c# unit test child method calls parameters
body: <p>Here is my <code>c#</code> code.</p>
  
  <p>I'm not sure how I should  verify that <code>Get</code> method called with correct parameters.</p>
  
  <pre><code>public class ClassToTest
  {    
      public IList&lt;Products&gt; GetProducts(string categoryId)
      {
          var items = _service.Get(new Category { id = categoryId, flag = true });
          return items;
      }
  }
  </code></pre>
  
  <p>e.g. it was called with <code>Category</code> class object with parameter <code>flag</code> as <code>true</code> and <code>id</code> as passed.</p>