Example #1
0
        public void LeaveEvento(Guid participantId)
        {
            var @event = new ParticipantLeft(Id, participantId);

            RaiseEvent(@event);
        }
Example #2
0
 private void When(ParticipantLeft e)
 {
     Participants.Remove(Participants.Where(p => p.UserId == e.ParticipantId).FirstOrDefault());
     Id = e.AggregateId;
 }
Example #3
0
 private void when(ParticipantLeft e)
 {
     this.ParticipantList.Remove(this.ParticipantList.Where(p => p.UserId == e.ParticipantId).FirstOrDefault());
     this.Id = e.AggregateId;
 }