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