コード例 #1
0
        public void RollbackSavepointException()
        {
            ISmartTransactionObject  transaction = MockRepository.GenerateMock <ISmartTransactionObject>();
            DefaultTransactionStatus stat        = new DefaultTransactionStatus(transaction, true, false, false, true, new object());

            stat.RollbackToSavepoint(null);
        }
コード例 #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));
        }
コード例 #3
0
 public void RollbackSavepointException()
 {
     ISmartTransactionObject transaction = MockRepository.GenerateMock<ISmartTransactionObject>();
     DefaultTransactionStatus stat = new DefaultTransactionStatus(transaction, true, false, false, true, new object());
     stat.RollbackToSavepoint(null);
 }
コード例 #4
0
		public void RollbackSavepointException()
		{
			DefaultTransactionStatus stat = new DefaultTransactionStatus( new MyMockTxnObject(), true, false, false, true, new object() );
			stat.RollbackToSavepoint(null);
		}
コード例 #5
0
 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));
 }
コード例 #6
0
        public void RollbackSavepointException()
        {
            DefaultTransactionStatus stat = new DefaultTransactionStatus(new MyMockTxnObject(), true, false, false, true, new object());

            stat.RollbackToSavepoint(null);
        }