title: Mock a method with parameters
body: <p>I'm injecting a dependency <code>CheckCompatibRepository</code>. I'm mocking a method <code>IsCompatible</code> which has a list as 3rd parameter.</p>
  
  <pre><code> var mockRepositoryCheckCompatib = new Mock&lt;ICheckCompatibilityActDoer&gt;();
              mockRepositoryCheckCompatib.Setup(c =&gt; c.IsCompatible(doer, activity, listActivitiesPreDispatched)).Returns(true);
  </code></pre>
  
  <p>The problem is the list. It's populated by the class I'm testing. Honnestly, I don't care about that parameter, I want to mock <code>IsCompatible</code> ignoring that parameter. Is that possible? </p>
  
  <p>Otherwise, the mocking just won't catch the method calls. To ease things, I tried by sending the list as an injected dependency in my class. It works until the list starts being populated, then the mock stops catching the calls.</p>
  
  <p>How would you mock this?</p>