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;
 }
示例#3
0
 public BookingCreated(BookingId id, BookableShowId bookableShowId, List <Seat> bookedSeats, DateTime created)
 {
     Id             = id;
     BookableShowId = bookableShowId;
     BookedSeats    = bookedSeats;
     Created        = created;
 }
示例#4
0
 public SeatReserved(BookableShowId bookableShowId, BookableSeatId seatId)
 {
     BookableShowId = bookableShowId;
     SeatId         = seatId;
 }
示例#5
0
 public SeatBooked(BookableShowId bookableShowId, BookableSeatId seatId)
 {
     BookableShowId = bookableShowId;
     SeatId = seatId;
 }
示例#6
0
 public static Booking Create(BookableShowId bookableShowId, List <Seat> bookedSeats)
 {
     return(new Booking(new BookingId(Guid.NewGuid().ToString()), bookableShowId, bookedSeats, DateTime.UtcNow));
 }
示例#7
0
 private Booking(BookingId id, BookableShowId bookableShowId, List <Seat> bookedSeats, DateTime created)
 {
     Apply(new BookingCreated(id, bookableShowId, bookedSeats, created));
 }
示例#8
0
 public SeatMadeAvailable(BookableShowId bookableShowId, BookableSeatId seatId)
 {
     BookableShowId = bookableShowId;
     SeatId         = seatId;
 }
 public SeatMadeAvailable(BookableShowId bookableShowId, BookableSeatId seatId)
 {
     BookableShowId = bookableShowId;
     SeatId = seatId;
 }