bookshelf
bookshelf copied to clipboard
Add undo/redo implementation.
Implementation:
- There are two stories: purchase product and cancel subscription.
- There is one data action class with do and undo methods: order repository.
Benefits:
- Data access logic in one place. Easy to change do/undo together.
- Two stories describes two separate processes independent from each other. Cancel subscription can have a different number of steps than purchase.