Ian Blackburn

Database Testing

There are 1 entries for the tag Database Testing

Even simpler Database Unit Testing with TransactionScope

Technorati Tags: TDD,Database Testing Roy Osherove has a well read article explaining how to use Enterprise Services to do database testing.  This is a pretty nice solution but if you are using .Net 2  then there is an even simpler way:  Using System.Transactions.TransactionScope. Some background: When you unit test code that is making changes to a database you want a way to ensure that the database remains consistent between tests.  One way to do that is to wrap the work in a transaction and then roll it back after the test is done. If you are using...