public void RollBack_Rolls_Back_Transaction_If_Transaction_Active()
        {
            // Arrange
            _transaction.Stub(trans => trans.IsActive)
                .Return(true);

            var uow = new UnitOfWork(_session, _transaction);

            // Act
            uow.Rollback();

            // Assert
            _transaction.AssertWasCalled(trans => trans.Rollback());
        }
        public void RollBack_Does_Not_Roll_Back_Transaction_If_Transaction_InActive()
        {
            // Arrange
            var uow = new UnitOfWork(_session, _transaction);

            // Act
            uow.Rollback();

            // Assert
            _transaction.AssertWasNotCalled(trans => trans.Rollback());
        }