public void RollbackSavepointException()
        {
            ISmartTransactionObject  transaction = MockRepository.GenerateMock <ISmartTransactionObject>();
            DefaultTransactionStatus stat        = new DefaultTransactionStatus(transaction, true, false, false, true, new object());

            stat.RollbackToSavepoint(null);
        }
Esempio n. 2
0
        public void RollbackSavepointException()
        {
            ISmartTransactionObject  transaction = A.Fake <ISmartTransactionObject>();
            DefaultTransactionStatus stat        = new DefaultTransactionStatus(transaction, true, false, false, true, new object());

            Assert.Throws <NestedTransactionNotSupportedException>(() => stat.RollbackToSavepoint(null));
        }
 public void RollbackSavepointException()
 {
     ISmartTransactionObject transaction = MockRepository.GenerateMock<ISmartTransactionObject>();
     DefaultTransactionStatus stat = new DefaultTransactionStatus(transaction, true, false, false, true, new object());
     stat.RollbackToSavepoint(null);
 }
		public void RollbackSavepointException()
		{
			DefaultTransactionStatus stat = new DefaultTransactionStatus( new MyMockTxnObject(), true, false, false, true, new object() );
			stat.RollbackToSavepoint(null);
		}
 public void RollbackSavepointException()
 {
     ISmartTransactionObject transaction = MockRepository.GenerateMock<ISmartTransactionObject>();
     DefaultTransactionStatus stat = new DefaultTransactionStatus(transaction, true, false, false, true, new object());
     Assert.Throws<NestedTransactionNotSupportedException>(() => stat.RollbackToSavepoint(null));
 }
Esempio n. 6
0
        public void RollbackSavepointException()
        {
            DefaultTransactionStatus stat = new DefaultTransactionStatus(new MyMockTxnObject(), true, false, false, true, new object());

            stat.RollbackToSavepoint(null);
        }