Replies: 1 comment 1 reply
-
Commands should not call other commands. Use a service layer if there is code that multiple commands need to share. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Thank you for providing this template.
I can see how mediatR + CQRS makes the CA more easily testable, and the simple examples demonstrates how it works.
But I'm trying to think ahead how it might work with more complex commands/queries? It could be the case where specific logic is repeated in multiple request handlers, say if Entity A encapsulates Entity B or if there are multiple commands in a transaction?
I'm wondering, what the best way to tackle that would be? Or am I misunderstanding something?
Beta Was this translation helpful? Give feedback.
All reactions