.NET TDD with a Database and ADO.NET Entity Framework - Integration Tests

Posted by Brian on Stack Overflow See other posts from Stack Overflow or by Brian
Published on 2010-06-13T18:21:35Z Indexed on 2010/06/13 18:32 UTC
Read the original article Hit count: 302

Filed under:
|
|
|
|

Hello,

I'm using ADO.NET entity framework, and am using an AdventureWorks database attached to my local database server. For unit testing, what approaches have people taken to work with a database?

Obviously, the database has to be in a pre-defined state of change so that the tests can have some isolation from each other... so I need to be able to run through the inserts and updates, then rollback either between tests or after the batch of tests are done.

Any advice?

Thanks.

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET