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

            stat.CreateSavepoint("mySavePoint");
        }
コード例 #2
0
        public void CreateSavepointException()
        {
            ISmartTransactionObject  transaction = A.Fake <ISmartTransactionObject>();
            DefaultTransactionStatus stat        = new DefaultTransactionStatus(transaction, true, false, false, true, new object());

            Assert.Throws <NestedTransactionNotSupportedException>(() => stat.CreateSavepoint("mySavePoint"));
        }
コード例 #3
0
 public void CreateSavepointException()
 {
     ISmartTransactionObject transaction = MockRepository.GenerateMock<ISmartTransactionObject>();
     DefaultTransactionStatus stat = new DefaultTransactionStatus(transaction, true, false, false, true, new object());
     stat.CreateSavepoint("mySavePoint");
 }
コード例 #4
0
		public void CreateSavepointException()
		{
			DefaultTransactionStatus stat = new DefaultTransactionStatus( new MyMockTxnObject(), true, false, false, true, new object() );
			stat.CreateSavepoint( "mySavePoint" );
		}
コード例 #5
0
 public void CreateSavepointException()
 {
     ISmartTransactionObject transaction = MockRepository.GenerateMock<ISmartTransactionObject>();
     DefaultTransactionStatus stat = new DefaultTransactionStatus(transaction, true, false, false, true, new object());
     Assert.Throws<NestedTransactionNotSupportedException>(() => stat.CreateSavepoint("mySavePoint"));
 }
コード例 #6
0
        public void CreateSavepointException()
        {
            DefaultTransactionStatus stat = new DefaultTransactionStatus(new MyMockTxnObject(), true, false, false, true, new object());

            stat.CreateSavepoint("mySavePoint");
        }