title: Moq Repository returns 0 items
body: <p>I am trying to use Moq to simulate adding elements to a repository and then check the amount of elements that have been inserted, but it alway give me 0 elements, something is wrong in my code, can you please help me?</p>
  
  <pre><code>var candidate = new Candidate { Id = Guid.NewGuid()};            
  var repo = new Mock&lt;ICandidateRepository&lt;Candidate&gt;&gt;();
  repo.Setup(x =&gt; x.Insert(candidate));
  repo.Setup(x =&gt; x.Submit());
  
  candidateBL.setRepository(repo.Object);
  MinifiedCount&lt;MinifiedCandidate&gt; result = candidateBL.Get(username, skip, take, id);
  </code></pre>
  
  <p>Inside candidateBL I checked the repository variable and has 0 elements.</p>
  
  <p>Thank you.</p>