Exemplo n.º 1
0
 private void When(ChildLeftDomainEvent domainEvent)
 {
     foreach (Child child in children)
     {
         if (child.Id == domainEvent.ChildId)
         {
             child.Left();
         }
     }
 }
Exemplo n.º 2
0
 public void Leave(Parent parent, Child child)
 {
     Raise(ChildLeftDomainEvent.Create(this, child.Id));
 }