Calendar

<<  March 2010  >>
MoTuWeThFrSaSu
22232425262728
1234567
891011121314
15161718192021
22232425262728
2930311234
View posts in large calendar
Cleaning up after unit test that tests your data layer can be pretty tedious. In order to simplify that work using the concept of transactions has been well documented in the book “Test-Driven Development in Microsoft.NET” from James W. Newkirk. However, it still involved some level of code that can be simplified using the concept of TransactionScope. Here is what you need to add to your test class using MSTest in order to remove/avoid any cleanup code in your unit test: private Trans... [More]