title: How do you prevent the base class constructor from being called with Moq?
body: <p>How do you prevent the base class constructor from being called with Moq?</p>
  
  <p>I'm unable to Mock an object with Moq because the base classes constructor is being called and it requires real objects, so I want to stop the base class constructor from being called.</p>
  
  <pre><code>var parametersMoq = new Mock&lt;MyDerivedClass&gt;(null, "Params", null){ CallBase = false, };
  _storedProcedureAccessor._parameters = parametersMoq.Object;
  </code></pre>
  
  <p>MyDerivedClass's base class constructor is causing me issues.</p>