public void SelectHotel(string hotelName)
        {
            IVacationPart part = this.partFactory.CreateHotelReservation(this.destinationTown, hotelName, this.arrivalDate,
                                                                         this.arrivalDate.AddDays(this.totalNights));

            this.parts.Add(part);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        public void SelectHotel(string hotelName)
        {
            IVacationPart part =
                this.vacationPartFactory
                .CreateHotelReservation(this.destinationTown, hotelName,
                                        this.arrivalDate,
                                        this.DepartureDate);

            this.parts.Add(part);
        }
Exemplo n.º 4
0
        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);
        }
Exemplo n.º 5
0
        public IVacationPart CreateFlight(string companyName, string source, string destination, DateTime date)
        {
            IVacationPart part = airPlaneService.SelectFlight(companyName, source, destination, date);

            return(part);
        }
Exemplo n.º 6
0
        public IVacationPart CreateHotelReservation(string town, string hotelName, DateTime arrivalDate, DateTime leaveTime)
        {
            IVacationPart part = hotelService.MakeBooking(hotelName, arrivalDate, leaveTime);

            return(part);
        }