コード例 #1
0
        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);
        }
コード例 #2
0
 private void Apply(AchievementCreatedEvent obj)
 {
     this.AggregateId     = obj.AggregateId;
     this.RunningNumberId = obj.RunningNumberId;
     this.Name            = obj.Name;
 }