public void SelectHotel(string hotelName) { IVacationPart part = this.partFactory.CreateHotelReservation(this.destinationTown, hotelName, this.arrivalDate, this.arrivalDate.AddDays(this.totalNights)); this.parts.Add(part); }
public void SelectHotel(string hotelName) { HotelInfo hotel = this.hotelSelector.SelectHotel(this.destinationTown, hotelName); IVacationPart part = this.hotelService.MakeBooking(hotel, this.arrivalDate, this.DepartureDate); this.parts.Add(part); }
public void SelectHotel(string hotelName) { IVacationPart part = this.vacationPartFactory .CreateHotelReservation(this.destinationTown, hotelName, this.arrivalDate, this.DepartureDate); this.parts.Add(part); }
public void SelectAirplane(string companyName) { IVacationPart part = airplaneService.SelectFlight(companyName, this.livingTown, this.destinationTown, this.arrivalDate); this.parts.Add(part); part = airplaneService.SelectFlight(companyName, this.destinationTown, this.livingTown, this.DepartureDate); this.parts.Add(part); }
public IVacationPart CreateFlight(string companyName, string source, string destination, DateTime date) { IVacationPart part = airPlaneService.SelectFlight(companyName, source, destination, date); return(part); }
public IVacationPart CreateHotelReservation(string town, string hotelName, DateTime arrivalDate, DateTime leaveTime) { IVacationPart part = hotelService.MakeBooking(hotelName, arrivalDate, leaveTime); return(part); }