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