Exemple #1
0
        public void UpdateParticipantState(Guid participantId, EventAcceptanceStatus newStatus)
        {
            var @event = new ParticipantStateUpdated(Id, participantId, newStatus);

            RaiseEvent(@event);
        }
Exemple #2
0
 private void When(ParticipantStateUpdated e)
 {
     Participants.Where(p => p.UserId == e.ParticipantId).FirstOrDefault().UpdateAcceptanceState(e.NewStatus);
     Id = e.AggregateId;
 }
Exemple #3
0
 private void when(ParticipantStateUpdated e)
 {
     this.ParticipantList.Where(p => p.UserId == e.ParticipantId).FirstOrDefault().UpdateAcceptanceState(e.NewState);
     this.Id = e.AggregateId;
 }