예제 #1
0
 public StaffUser(StaffUserAdded @event)
 {
     Id                = @event.Id;
     FirstName         = @event.FirstName;
     LastName          = @event.LastName;
     Age               = @event.Age;
     Sex               = @event.Sex;
     NationalSociety   = @event.NationalSociety;
     PreferredLanguage = @event.PreferredLanguage;
     Location          = @event.Location;
     GeoLocation       = @event.GeoLocation;
     MobilePhoneNumber = @event.MobilePhoneNumber;
     Email             = @event.Email;
 }
        public void Process(StaffUserAdded @event)
        {
            var user = new StaffUser(@event);

            _users.Save(user);
        }