title: Moq Setup not working, the original method is still called
body: <p>The original method it still called when i try to use Moq. Here is my code:</p>
  
  <pre><code>var mockedBetRepository = new Mock&lt;BetRepository&gt;(new FakeSiteContext());
  mockedBetRepository.CallBase = true;
  Bet bet = new Bet();
  mockedBetRepository.Setup&lt;Bet&gt;(m =&gt; m.UpdateBet(bet)).Returns(bet);
  
  betRepository = mockedBetRepository.Object;
  </code></pre>
  
  <p>Later in the code, <code>betRepository.UpdateBet(bet)</code> is called, but its not my mocked method which gets called, instead, the class's method gets called:</p>
  
  <pre><code>public virtual Bet UpdateBet(Bet betToUpdate)
  {
      siteContext.Entry(betToUpdate).State = System.Data.EntityState.Modified;
      siteContext.SaveChanges();
      return betToUpdate;
  }
  </code></pre>
  
  <p>Why it this happening?</p>