Exemple #1
0
        public void can_wait_for_transaction_rollback()
        {
            bool eventFired = false;

            using (var scope = new TransactionScope())
            {
                CurrentTransaction.Aborted(() => eventFired = true);
                Assert.IsFalse(eventFired);
            }
            Assert.IsTrue(eventFired);
        }