public BookingCreated(BookingId id, BookableShowId bookableShowId, List<Seat> bookedSeats, DateTime created) { Id = id; BookableShowId = bookableShowId; BookedSeats = bookedSeats; Created = created; }
public BookableShowCreated(BookableShowId id, ScreenId screenId, DateTime showTime, List<BookableSeat> seats) { Id = id; ScreenId = screenId; ShowTime = showTime; Seats = seats; }
public BookingCreated(BookingId id, BookableShowId bookableShowId, List <Seat> bookedSeats, DateTime created) { Id = id; BookableShowId = bookableShowId; BookedSeats = bookedSeats; Created = created; }
public SeatReserved(BookableShowId bookableShowId, BookableSeatId seatId) { BookableShowId = bookableShowId; SeatId = seatId; }
public SeatBooked(BookableShowId bookableShowId, BookableSeatId seatId) { BookableShowId = bookableShowId; SeatId = seatId; }
public static Booking Create(BookableShowId bookableShowId, List <Seat> bookedSeats) { return(new Booking(new BookingId(Guid.NewGuid().ToString()), bookableShowId, bookedSeats, DateTime.UtcNow)); }
private Booking(BookingId id, BookableShowId bookableShowId, List <Seat> bookedSeats, DateTime created) { Apply(new BookingCreated(id, bookableShowId, bookedSeats, created)); }
public SeatMadeAvailable(BookableShowId bookableShowId, BookableSeatId seatId) { BookableShowId = bookableShowId; SeatId = seatId; }