Exemplo n.º 1
0
 public void Handle(ParticipantCreated e)
 {
     Participants.Add(e.Id, new Participant {
         Id     = e.Id,
         Name   = e.Name,
         Gender = e.Gender
     });
 }
Exemplo n.º 2
0
 public void Handle(ParticipantCreated e)
 {
     Participants.Add(new Participant
     {
         Id   = e.Id,
         Name = e.Name
     });
 }
Exemplo n.º 3
0
 public void Handle(ParticipantCreated e)
 {
     Participants.Add(e.Id, new Participant
     {
         Id         = e.Id,
         Name       = e.Name,
         IsDelegate = e.IsDelegate,
         IsRookie   = e.YearsQualifying == 1,
         IsGuest    = e.IsGuest,
         Birthday   = e.Birthday,
     });
 }
Exemplo n.º 4
0
 public void When(ParticipantCreated participantCreated)
 {
     ParticipantId = participantCreated.ParticipantId;
 }
Exemplo n.º 5
0
 /// <summary>
 /// Raise Participant created event
 /// </summary>
 /// <param name="e"></param>
 protected virtual void OnParticipantCreated(EventArgs e)
 {
     ParticipantCreated?.Invoke(this, e); // Raise event!
 }