Beispiel #1
0
 public VacationPartFactory(IHotelService hotelService, IHotelSelector hotelSelector,
                            IAirplaneService airplaneService)
 {
     this.hotelService    = hotelService;
     this.hotelSelector   = hotelSelector;
     this.airplaneService = airplaneService;
 }
 public VacationPartFactory(
     IHotelSelector hotelSelector,
     IHotelService hotelService,
     IAirplaneService airplaneService
     )
 {
     _hotelSelector   = hotelSelector;
     _hotelService    = hotelService;
     _airplaneService = airplaneService;
 }
Beispiel #3
0
        public VacationSpecificationBuilder(IHotelService hotelService,
                                            IHotelSelector hotelSelector,
                                            IAirplaneService airplaneService,
                                            DateTime arrivalDate, int totalNights,
                                            string livingTown, string destinationTown)
        {
            this.hotelService    = hotelService;
            this.hotelSelector   = hotelSelector;
            this.airplaneService = airplaneService;

            this.arrivalDate = arrivalDate;
            this.totalNights = totalNights;

            this.livingTown      = livingTown;
            this.destinationTown = destinationTown;
        }