private void When(PatientRegisteredEvent @event) { Id = @event.Id; Firstname = @event.FirstName; LastName = @event.LastName; Phone = @event.Phone; }
protected Patient(PatientRegisteredEvent @event) { ApplyChange <Patient>(@event); }