private AchievementAggregateRoot(Guid achievementId, Guid runningNumberId, string name, int counterIncrease, int storypoints) : this() { var creationEvent = new AchievementCreatedEvent(achievementId, runningNumberId, name, counterIncrease, storypoints); this.RaiseEvent(creationEvent); }
private void Apply(AchievementCreatedEvent obj) { this.AggregateId = obj.AggregateId; this.RunningNumberId = obj.RunningNumberId; this.Name = obj.Name; }