public void TestAddBusinessObjectToTransactionInUpdateBeforePersisting()
        {
            //---------------Set up test pack-------------------

            FakeBOWithUpdateBeforePersisting fakeBO    = new FakeBOWithUpdateBeforePersisting();
            TransactionCommitterStub         committer = new TransactionCommitterStub();
            TransactionalBusinessObjectStub  trnBusObj = new TransactionalBusinessObjectStub(fakeBO);

            committer.AddTransaction(trnBusObj);
            //---------------Execute Test ----------------------

            committer.CommitTransaction();

            //---------------Test Result -----------------------
            Assert.AreEqual(2, committer.OriginalTransactions.Count);
        }
        public void TestAddBusinessObjectToTransactionInUpdateBeforePersisting()
        {
            //---------------Set up test pack-------------------

            FakeBOWithUpdateBeforePersisting fakeBO = new FakeBOWithUpdateBeforePersisting();
            TransactionCommitterStub committer = new TransactionCommitterStub();
            TransactionalBusinessObjectStub trnBusObj = new TransactionalBusinessObjectStub(fakeBO);
            committer.AddTransaction(trnBusObj);
            //---------------Execute Test ----------------------

            committer.CommitTransaction();

            //---------------Test Result -----------------------
            Assert.AreEqual(2, committer.OriginalTransactions.Count);
        }