Exemplo n.º 1
0
        public void TransactionUitlWithSpecificAttributeTest()
        {
            container.AddInterceptor <TransactionBean>();

            TransactionBean transactionBean = container.GetInstance <TransactionBean>();

            Assert.AreEqual(0, transactionBean.Result);

            transactionBean.DoWithSpecificTransaction();

            Assert.AreEqual(0, transactionBean.Result);
        }
Exemplo n.º 2
0
        public void TransactionUitlTest()
        {
            container.AddInterceptor <TransactionBean>();

            TransactionBean transactionBean = container.GetInstance <TransactionBean>();

            Assert.AreEqual(0, transactionBean.Result);

            transactionBean.Do();

            Assert.AreEqual(0, transactionBean.Result);
        }