public void CreateSavepointException() { ISmartTransactionObject transaction = MockRepository.GenerateMock <ISmartTransactionObject>(); DefaultTransactionStatus stat = new DefaultTransactionStatus(transaction, true, false, false, true, new object()); stat.CreateSavepoint("mySavePoint"); }
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")); }
public void CreateSavepointException() { ISmartTransactionObject transaction = MockRepository.GenerateMock<ISmartTransactionObject>(); DefaultTransactionStatus stat = new DefaultTransactionStatus(transaction, true, false, false, true, new object()); stat.CreateSavepoint("mySavePoint"); }
public void CreateSavepointException() { DefaultTransactionStatus stat = new DefaultTransactionStatus( new MyMockTxnObject(), true, false, false, true, new object() ); stat.CreateSavepoint( "mySavePoint" ); }
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")); }
public void CreateSavepointException() { DefaultTransactionStatus stat = new DefaultTransactionStatus(new MyMockTxnObject(), true, false, false, true, new object()); stat.CreateSavepoint("mySavePoint"); }