title: How to use Moq to mock database method call?
body: <p>I have question about mock Database. I saw something using moq to mock database call like ExecuteScalar,  ExecuteNonQuery and etc. See the link <a href="http://www.codeproject.com/Articles/478504/Moq-Mock-Database" rel="nofollow">http://www.codeproject.com/Articles/478504/Moq-Mock-Database</a>. </p>
  
  <p>But I am not able to find any information about mock method DiscoverParameters, and ExecuteDataSet.
  And repository interface usually a solution for it. </p>
  
  <blockquote>
    <p>How can I test the DbCommand execute result code with Moq?</p>
  </blockquote>