private ScreeningReservation ScreeningReservationById(ScreeningId screeningId) { var history = _eventStore.Search(@by: $"ScreeningId = {screeningId}"); var state = new ScreeningReservationState(history); return(new(state)); }
protected bool Equals(ScreeningPlanned other) { return(ScreeningId.Equals(other.ScreeningId) && Seats.SequenceEqual(other.Seats)); }
protected bool Equals(SeatsReserved other) { return(ScreeningId.Equals(other.ScreeningId) && CustomerId.Equals(other.CustomerId) && SeatIds.SequenceEqual(other.SeatIds)); }
public ScreeningInfo(ScreeningId screeningId, IReadOnlyList <SeatNumber> allSeats) { ScreeningId = screeningId; AllSeats = allSeats.ToList(); _availableSeats = allSeats.ToList(); }
protected bool Equals(SeatsReservationRequestedTooLate other) { return(ScreeningId.Equals(other.ScreeningId) && CustomerId.Equals(other.CustomerId) && Seats.SequenceEqual(other.Seats)); }
protected bool Equals(Reservation other) { return(ScreeningId.Equals(other.ScreeningId) && Seats.SequenceEqual(other.Seats)); }
public ClientSeatReservationInfo(ScreeningId screeningId, SeatNumber seatNumber, DateTimeOffset reservedAt) { ScreeningId = screeningId; SeatNumber = seatNumber; ReservedAt = reservedAt; }
protected bool Equals(SeatsReservationFailed other) { return(ScreeningId.Equals(other.ScreeningId) && CustomerId.Equals(other.CustomerId) && AlreadyReservedSeats.SequenceEqual(other.AlreadyReservedSeats)); }