Hello,
I'm writing my own transaction-aware (IEnlistmentNotification) piece of code and am trying to test it using XUnit. All I need is to wait the transaction commited and test the outcome is what I expect. The thing is that transaction commitment happens in a separate thread, so I need to synchronize my test and piece of code I'm testing. Aside of using EventWaitHandle, are there any simpler ways to test something after the transaction completed?
Thanks.