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

            if (seat == null)
                return;

            seat.Status = BookableSeatStatus.Available;
        }
示例#2
0
        public void When(SeatMadeAvailable evt)
        {
            var seat = Seats.FirstOrDefault(x => x.Id == evt.SeatId);

            if (seat == null)
            {
                return;
            }

            seat.Status = BookableSeatStatus.Available;
        }