title: Using moq on an override of abstract method?
body: <p>I have this base class</p>
  
  <pre><code>public abstract class Third : IThird
  {
      public abstract ThirdUser GetUserDetails(HttpRequestBase request);
  }
  </code></pre>
  
  <p>and this derived class</p>
  
  <pre><code>public class LiProvider : Third
  {
      public override ThirdUser GetUserDetails(HttpRequestBase request) { }
  }
  </code></pre>
  
  <p>I tried to Moq this override like so: </p>
  
  <pre><code>mockLiProvider.Setup(x =&gt; x.GetUserDetails(It.IsAny&lt;HttpRequestWrapper&gt;())).Returns(user);
  </code></pre>
  
  <p>but it returns <code>null</code>, not the <code>user</code> in the <code>Setup</code>. </p>
  
  <p><code>user</code> is definitely initialised in this test.</p>
  
  <p>How can I mock this?</p>