public ParticipantStateUpdated(Guid id, Guid participantId, EventAcceptanceState newState) : base(id)
 {
     this.ParticipantId = participantId;
     this.NewState      = newState;
 }
Example #2
0
        public void UpdateParticipantState(Guid participantId, EventAcceptanceState newState)
        {
            var @event = new ParticipantStateUpdated(Id, participantId, newState);

            base.RaiseEvent(@event);
        }
 public UpdateParticipantState(Guid eventoId, Guid ParticipantId, EventAcceptanceState state) : base(eventoId)
 {
     this.ParticipantId = ParticipantId;
     this.State = state;
 }
Example #4
0
 public void UpdateAcceptanceState(EventAcceptanceState acceptanceState)
 {
     this.AcceptanceState = acceptanceState;
 }
Example #5
0
 internal Participant(Guid userId, EventAcceptanceState acceptanceState)
 {
     this.UserId          = userId;
     this.AcceptanceState = acceptanceState;
 }
        public async Task <IActionResult> UpdateParticipantState([FromRoute] Guid eventId, [FromRoute] Guid participantId, [FromRoute] EventAcceptanceState state)
        {
            await commandDispatcher.Dispatch <Domain.Entity.Evento>(new UpdateParticipantState(eventId, participantId, state));

            return(new StatusCodeResult(StatusCodes.Status204NoContent));
        }