public ReservationConfirmation(
			string confirmationNumber, Reservation reservation)
		{
			this.confirmationNumber = confirmationNumber;
			this.reservation = reservation;
		}
Esempio n. 2
0
		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);
		}