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

            Apply(e);
        }