-
Notifications
You must be signed in to change notification settings - Fork 914
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
Receiving ValueObject in Application Services methods parameters #57
Comments
Seems like trading six for half a dozen. |
@100f I truly don't understand what you are asking or asserting. I'll take a few guesses.
I get the impression that you have not read my book "Implementing Domain-Driven Design." All the intricacies demonstrated by the code are covered in 14 detailed chapters, ad nauseum. |
@VaughnVernon This answer should be addressed to the OP, not me. I actually answered him that there is no need to pass the primitive values of TenantId and DiscussionId to a repository method, because as a domain object, the repository should speak domain, which is exactly what is already being done in Discussion discussion =
this.discussionRepository()
.discussionOfId(new Tenant(aTenantId),
new DiscussionId(aDiscussionId)); |
Hi Vaughn.
Have you considered using ValueObject in Application Service method parameters? It might help reduce the risk of errors. What do you think?
This:
Instead this:
The text was updated successfully, but these errors were encountered: