public void when_seat_asignee_updated_then_updates_order_seat() { this.sut.Handle(new SeatAssignmentsCreated { SourceId = placed.SourceId, OrderId = placed.SourceId }); var e = new SeatAssigned(placed.SourceId) { Attendee = new Registration.PersonalInfo { Email = "*****@*****.**", FirstName = "A", LastName = "Z", }, SeatType = this.conference.Seats.First().Id, }; this.sut.Handle(e); e.Attendee.LastName = "B"; this.sut.Handle(e); var order = FindOrder(e.SourceId); Assert.Equal(1, order.Seats.Count); Assert.Equal("B", order.Seats.First().Attendee.LastName); }
private void OnSeatAssigned(SeatAssigned e) { this.seats[e.Position] = Mapper.Map(e, new SeatAssignment()); }