public void Handle(PersonRenamedEvent @event)
        {
            var person = this.personService.Find(@event.AggregateId);

            person.Name = @event.Name;
            this.personService.Update(person);
        }
Esempio n. 2
0
 private void Apply(PersonRenamedEvent @event)
 {
     this.Id    = @event.AggregateId;
     this.Class = new PersonType(this.Class.Class, @event.Name, this.Class.Age);
 }