Recently, I asked about my difficulties in finding the boundaries of aggregates here and I recently reinterpreted it and rid it of business features and now it sounds like this:
In many sources, examples are given of the allocation of aggregates. Most often in these examples of one aggregate one or more important behavioral objects are used and several objects representing background information. For example Order
as behavioral object and PaymentWay
, Location
as background information or Delivery
behavioral object and Location
, DeliveryWay
, Car
as background and so on.
My question is how to fill out background information if we can not be attached to specific instances of the aggregates ? I mean, it seems to me that I can not write as follows: order.AddNewPaymentWay(location)
because I do not want to
create an Order, I just want to fill in the background information.