public ReservationConfirmation( string confirmationNumber, Reservation reservation) { this.confirmationNumber = confirmationNumber; this.reservation = reservation; }
public ReservationConfirmation Book(Reservation reservation) { if (reservation == null) { throw new ArgumentNullException("reservation", "The 'reservation' argument is required."); } return new ReservationConfirmation(Guid.NewGuid().ToString("N").Substring(17, 5).ToUpper(), reservation); }