public Order(Customer customer, Superpower superpower, DateRange period)
 {
     Id                = OrderId.NewId();
     Customer          = customer;
     Superpower        = superpower;
     Period            = period;
     Status            = OrderStatus.New;
     ProcessInstanceId = null;
 }
Esempio n. 2
0
 public HeroPower(Hero hero, Superpower superpower)
 {
     Id         = HeroPowerId.NewId();
     Hero       = hero;
     Superpower = superpower;
 }
Esempio n. 3
0
 public Hero AddPower(Superpower power)
 {
     superpowers.Add(new HeroPower(this, power));
     return(this);
 }