title: Unit testing database code
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/391249/unit-testing-on-code-that-uses-the-database">Unit testing on code that uses the Database</a>  </p>
  </blockquote>
  
  
  
  <p>I am just starting with unit testing and wondering how to unit test methods that are making actual changes to my database.  Would the best way be to put them into transactions and then rollback, or are there better approaches to this?</p>