Exemplo n.º 1
0
 public GrowingPlant(PlantDetails details, ISchedule schedule)
 {
     PlantDetails = details;
     schedule.AddAgent(this);
 }
Exemplo n.º 2
0
 public Plant(PlantDetails details, ISchedule schedule = null)
 {
     PlantDetails = details;
     schedule?.AddAgent(this);
     // for IScheduleAgent aspects, do I need to link back to my entity?
 }