Rollback in test

Mar 5, 2015 at 5:51 PM
Is there an example of doing a rollback in teardown?

I think that would mean that I have to have the same context for allt the tests(and within the tests which means that an test like "CreateAndUpdateAndDeleteCustomerGraphTest" would not work because of a comment in the code:
// Query for newly created customer by ID from a new context, to ensure it's not pulling from cache

If I want to do integration tests against a real db is it best to do a rollback in each test?
Also if someone could look at my follow-up question:

Thank you in advance
May 12, 2015 at 5:12 PM
Marked as answer by lelong37 on 5/12/2015 at 10:17 AM