public void when_unassigning_already_unnassigned_seat_then_no_event_is_raised() { var command = new UnassignSeat { SeatAssignmentsId = assigmentsId, Position = 1, }; sut.When(command); Assert.False(sut.Events.OfType<SeatUnassigned>().Any()); }
public void when_unassigning_seat_then_seat_is_unassigned() { var command = new UnassignSeat { SeatAssignmentsId = assigmentsId, Position = 0, }; sut.When(command); var @event = sut.ThenHasSingle<SeatUnassigned>(); Assert.Equal(0, @event.Position); Assert.Equal(assigmentsId, @event.SourceId); }