how to test TransactionScope
Posted on 2012-03-20
i have a wrapper class for TransactionScopes being used in multiple places, one of them is the root. what is the best way to test my nested TransactionScopes actually work? For example, i want to make sure that when my wrapper's Displose() is called, all TransactionScopes are now null. also, what is the best way to find out which TransactionScope i am looking at, via System.Thread.Current?