title: Moq - How to call the same setup with different parameters in a loop
body: <p>I'm having some issues setting up one of my mocks in a test that will ultimately call the setup many times but with different parameters so:</p>
  
  <pre><code>var testMock = new Mock&lt;SomeClass&gt;(MockBehavior.Strict);
  
  for (int i = 30000; i &lt;= 300000; i+=10000)
  {
     testMock.Setup(x =&gt; x.MethodA(SomeStaticClass.GetIt(varA, varB, i), It.IsAny&lt;int&gt;()))
         .Returns(new List&lt;SomeClass&gt;());
  }
  </code></pre>
  
  <p>So, the above doesn't work. It seems like only the last iteration will be "remembered" by the mock. How can I set up many setups on one mock like I intended to do above?</p>