public void When(SeatReserved evt)
        {
            var seat = Seats.FirstOrDefault(x => x.Id == evt.SeatId);

            if (seat == null)
                return;

            seat.Status = BookableSeatStatus.Reserved;
        }
Exemplo n.º 2
0
        public void When(SeatReserved evt)
        {
            var seat = Seats.FirstOrDefault(x => x.Id == evt.SeatId);

            if (seat == null)
            {
                return;
            }

            seat.Status = BookableSeatStatus.Reserved;
        }