Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
@AdamBrown Thanks a lot for you answer, accepted! I learned a lot! I would still have two small questions if you don't mind. As for 1.) You mean it for the RunnableTransaction class, right? Or also for my old ContainerPlacerForNewOrderService ? As for 2.) and 4.) So the new ContainerPlacerForNewOrderService is unnecessary since it operates only on its own parameters, am i right? 3.) I love it! :)
Thank you very much for your answer! So far I did not know what AggregateRoot is, just read about it. This DDD looks promising I will learn more about it! So just to make the things a bit clear because it is a bit difficult to understand what you say without code example. (If you would provide some I would really appreciate it, thanks) So I make a OrderAggregateRepository which has an injected IDateTime constructor parameter, and an GetByOrder method which instantiates the Aggregate object which in this case the Order. Then the repository should be used in this class.Is it correct? :)
@t3chb0t I thought that those codes are not relevant to my question at all, so i decided not to put in the code. But I can do it, I finish with working then I am going to put those code-parts as well, thanks for your remark.