Exemple #1
0
 public void When(PersonRegistered @event)
 {
     FirstName  = @event.FirstName;
     LastName   = @event.LastName;
     Registered = @event.Registered;
 }
Exemple #2
0
        public void RegisterPerson(string firstName, string lastName, DateTimeOffset registered)
        {
            var e = new PersonRegistered(firstName, lastName, registered);

            Apply(e);
        }