title: Unit testing on code that uses the Database
body: <p>I'm interested to know what approach people are taking in developing automated unit tests that exercise the database</p>
  
  <p>Do you Install a QA database (known-starting point) before the test suite is run.</p>
  
  <p>OR</p>
  
  <p>Do you build database stub  that stand-in whenever a database call occurs? </p>
  
  <p>EDIT: Related question, but not a duplicate, though quite important for the matter at hand: <a href="https://stackoverflow.com/questions/2046/how-do-i-unit-test-persistence">How do I unit-test persistence?</a></p>