Why don't we create and destroy a test sqlite in memory database for the tests instead of stubbing out the DB calls ?<div><br></div><div><b>Pros:</b></div><div>More thorough testing</div><div>More straight forward testing (create records instead of whole mock structures)</div>
<div>Easier to create new tests, no need to stub everything out again, just use the base test DB</div><div><br></div><div><b>Cons:</b></div><div>Probably slower tests</div><div><br></div><div>Has anyone looked at this in the past ?</div>
<div><br></div><div>All comments appreciated.</div><div><br></div><div>Kind Regards,</div><div>Matthew Sherborne</div>