public void when_assigning_previously_assigned_seat_to_new_email_then_reassigns_seat_with_two_events()
        {
            var command = new AssignSeat
            {
                SeatAssignmentsId = assigmentsId,
                Position = 0,
                Attendee = new PersonalInfo
                {
                    Email = "*****@*****.**",
                    FirstName = "B",
                    LastName = "Z",
                }
            };
            sut.When(command);

            var unassign = sut.ThenHasOne<SeatUnassigned>();

            Assert.Equal(0, unassign.Position);
            Assert.Equal(assigmentsId, unassign.SourceId);

            var assign = sut.ThenHasOne<SeatAssigned>();

            Assert.Equal(0, assign.Position);
            Assert.Equal(seatType, assign.SeatType);
            Assert.Equal(assigmentsId, assign.SourceId);
            Assert.Equal(command.Attendee, assign.Attendee);
        }
        public void when_assigning_previously_assigned_seat_to_same_email_then_updates_assignment()
        {
            var command = new AssignSeat
            {
                SeatAssignmentsId = assigmentsId,
                Position = 0,
                Attendee = new PersonalInfo
                {
                    Email = "*****@*****.**",
                    FirstName = "B",
                    LastName = "Z",
                }
            };
            sut.When(command);

            var assign = sut.ThenHasSingle<SeatAssignmentUpdated>();

            Assert.Equal(0, assign.Position);
            Assert.Equal(assigmentsId, assign.SourceId);
            Assert.Equal(command.Attendee, assign.Attendee);
        }
        public void when_assigning_unassigned_seat_then_seat_is_assigned()
        {
            var command = new AssignSeat
            {
                SeatAssignmentsId = assigmentsId,
                Position = 1,
                Attendee = new PersonalInfo
                {
                    Email = "*****@*****.**",
                    FirstName = "A",
                    LastName = "Z",
                }
            };
            sut.When(command);

            var @event = sut.ThenHasSingle<SeatAssigned>();

            Assert.Equal(1, @event.Position);
            Assert.Equal(seatType, @event.SeatType);
            Assert.Equal(assigmentsId, @event.SourceId);
            Assert.Equal(command.Attendee, @event.Attendee);
        }