public when_order_update_is_received()
        {
            var makeReservationCommand = sut.Commands.Select(e => e.Body).OfType<MakeSeatReservation>().Single();
            this.reservationId = makeReservationCommand.ReservationId;

            this.orderUpdated = new OrderUpdated
            {
                SourceId = this.orderId,
                Seats = new[] { new SeatQuantity(Guid.NewGuid(), 3) }
            };
            sut.Handle(orderUpdated);
        }
Пример #2
0
 private void OnOrderUpdated(OrderUpdated e)
 {
     this.seats = e.Seats.ToList();
 }