Moq - setup Where extension?
<p>How to set up where linq extension on object? <code>DbSet</code> in my case. Here is my code:</p>

<pre><code>this.workflowStateSet
   .Setup(m =&gt; m.Where(It.IsAny&lt;Expression&lt;Func&lt;Model.WorkflowState, int, bool&gt;&gt;&gt;()))
   .Returns(new List&lt;Model.WorkflowState&gt;().AsQueryable());
</code></pre>

<p>However, it gives me exception not very familiar exception:    </p>

<blockquote>
  <p>System.NotSupportedException: Expression references a method that
  does not belong to the mocked object: <code>m =&gt; m.Where&lt;WorkflowState&gt;</code></p>
</blockquote>

<p>I will be grateful for any hint.</p>