1 min readSep 19, 2019
Sorry, I expressed myself wrongly when I said factory methods; To be more specific I meant static factory methods. They are not only meant to tackle the complexity of the creation of an object, they’re also very handy when it comes to readability of the code (think of how TimeSpan is designed).
IMO giving this action a meaning like:
PlaceOrderCommand.Envelop(…)
Expresses much more its purpose than
new PlaceOrderCommand(…)
But one thing I agree, commands are just simple DTOs and whatever is used will work for the simple purpose of sending it.