public void SetAggregateName(String aggregateName) { AggregateNameSetEvent aggregateNameSetEvent = AggregateNameSetEvent.Create(this.AggregateId, aggregateName); this.ApplyAndAppend(aggregateNameSetEvent); }
private void PlayEvent(AggregateNameSetEvent domainEvent) { this.AggregateName = domainEvent.AggregateName; }