public void DecreaseSharesBy(int numberOfShares) { NumberOfShares -= numberOfShares; var decreasedShareEvent = new MemberShareUpdatedEvent(this, MemberShareUpdateType.Decreased); DomainEvents.Raise(decreasedShareEvent); }
public void IncreaseSharesBy(int numberOfShares) { NumberOfShares += numberOfShares; var increasedShareEvent = new MemberShareUpdatedEvent(this, MemberShareUpdateType.Increased); DomainEvents.Raise(increasedShareEvent); }