public void Handle(ParticipantProfileChanged e) { var participant = Participants.Single(x => x.Id == e.Id); participant.HasProfile = true; participant.Age = e.Age; participant.HomeTown = e.HomeTown; participant.MaritalStatus = e.MaritalStatus; participant.SpouseName = e.SpouseName; participant.Children = e.Children; participant.Occupation = e.Occupation; participant.HomeCenter = e.HomeCenter; participant.YearsBowling = e.YearsBowling; participant.NumberOfLeagues = e.NumberOfLeagues; participant.HighestAverage = e.HighestAverage; participant.YearsCoaching = e.YearsCoaching; participant.BestFinishProvincially = e.BestFinishProvincially; participant.BestFinishNationally = e.BestFinishNationally; participant.MasterProvincialWins = e.MasterProvincialWins; participant.MastersAchievements = e.MastersAchievements; participant.OpenAchievements = e.OpenAchievements; participant.OpenYears = e.OpenYears; participant.OtherAchievements = e.OtherAchievements; participant.Hobbies = e.Hobbies; }
public void Apply(ParticipantProfileChanged e) { Profile.Age = e.Age; Profile.HomeTown = e.HomeTown; Profile.MaritalStatus = e.MaritalStatus; Profile.SpouseName = e.SpouseName; Profile.Children = e.Children; Profile.Occupation = e.Occupation; Profile.HomeCenter = e.HomeCenter; Profile.YearsBowling = e.YearsBowling; Profile.NumberOfLeagues = e.NumberOfLeagues; Profile.HighestAverage = e.HighestAverage; Profile.YearsCoaching = e.YearsCoaching; Profile.BestFinishProvincially = e.BestFinishProvincially; Profile.BestFinishNationally = e.BestFinishNationally; Profile.MasterProvincialWins = e.MasterProvincialWins; Profile.MastersAchievements = e.MastersAchievements; Profile.OpenAchievements = e.OpenAchievements; Profile.OpenYears = e.OpenYears; Profile.OtherAchievements = e.OtherAchievements; Profile.Hobbies = e.Hobbies; }