Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add state based invariant checks #35

Merged

Conversation

amguilmet
Copy link

I added an example of a state-based business invariant check as in issue #15 . It adds a 'hydrated' MaxQty property that Check Ins can be compared against. It also made sense to move the ephemeral 'count' property that didn't really exist in the abstration but was just passed around as an argument and was actually changed in the read model. It seemed to make much more sense to put it in the Inventory Aggregate as an actual property.

@gregoryyoung
Copy link
Owner

gregoryyoung commented Dec 31, 2022

image

Next time please collapse commits (easier to review).

As reference, you can do this using git rebase -i HEAD~N

Thanks!

@gregoryyoung gregoryyoung merged commit c0b50c1 into gregoryyoung:master Dec 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants