Beispiel #1
0
 private void When(ParticipantsListUpdated e)
 {
     Participants.ToList().RemoveAll(participant => !e.ParticipantList.Contains(participant.UserId));
     e.ParticipantList.ToList().Except(Participants.Select(p => p.UserId)).ToList()
     .ForEach(p => Participants.Add(new Participant(p, EventAcceptanceStatus.Pending)));
     Id = e.AggregateId;
 }
Beispiel #2
0
        public void UpdateParticipantList(ICollection <Guid> participantList)
        {
            var @event = new ParticipantsListUpdated(Id, participantList);

            RaiseEvent(@event);
        }