-
Hello, Thanks for the hard work on this project. I have a question regardless the handle method of the aggregate test case. I really don't see the point of that method. Let's take the example from the documentation:
I use commands in my system in order to perform mutations in my aggregate root. I didn't get the point of this provided code sample:
In which case should I retrieve the aggregate root to perform an action (I put that in my command handler) and persist it? Let's say I currently have this example code that I'd like to refactor using event-driven approch by using EventSaucePHP:
I'd like to be sure what I put inside the Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
My suggested answer to my own question is that I can call my command bus in the handle method of the test case. Am I wrong? |
Beta Was this translation helpful? Give feedback.
My suggested answer to my own question is that I can call my command bus in the handle method of the test case.
Am I wrong?