public SearchResultViewModel(
     IFlightBookingService flightBookingService,
     INavigationService navigationService)
 {
     _flightBookingService = flightBookingService;
     _navigationService    = navigationService;
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AccountController" /> class.
 /// </summary>
 /// <param name="homePageService">Home Page Service</param>
 /// <param name="stateService">State Service</param>
 /// <param name="configuration">Configuration</param>
 /// <param name="countryService">The Country Service.</param>
 /// <param name="cityService">The City Service.</param>
 /// <param name="mapper">The mapper.</param>
 /// <param name="userDetailService">The user detail service.</param>
 /// <param name="masterService">The master service.</param>
 /// <param name="serviceProvider">The service provider.</param>
 /// <param name="applicationUserService">The application user service.</param>
 /// <param name="hotelBookingService">The hotel booking service.</param>
 /// <param name="flightBookingService">The flight booking service.</param>
 public AccountController(IHomePageService homePageService, IStateService stateService, IConfiguration configuration, ICountryService countryService, ICityService cityService, IMapper mapper, IUserDetailService userDetailService, IMasterService masterService, IServiceProvider serviceProvider, IApplicationUserService applicationUserService, IHotelBookingService hotelBookingService, IFlightBookingService flightBookingService)
     : base(mapper, homePageService, cityService, countryService, configuration, stateService)
 {
     this.configuration          = configuration;
     this.cityService            = cityService;
     this.countryService         = countryService;
     this.userDetailService      = userDetailService;
     this.masterService          = masterService;
     this.serviceProvider        = serviceProvider;
     this.applicationUserService = applicationUserService;
     this.hotelBookingService    = hotelBookingService;
     this.flightBookingService   = flightBookingService;
 }
示例#3
0
        public BookingDialog(GetBookingDetailsDialog getBookingDetailsDialog, IFlightBookingService flightBookingService)
            : base(nameof(BookingDialog))
        {
            _flightBookingService = flightBookingService;
            AddDialog(getBookingDetailsDialog);
            AddDialog(new ConfirmPrompt(nameof(ConfirmPrompt)));
            var steps = new WaterfallStep[]
            {
                GetBookingDetailsActionAsync,
                ConfirmActionAsync,
                FinalActionAsync,
            };

            AddDialog(new WaterfallDialog(nameof(WaterfallDialog), steps));

            // The initial child Dialog to run.
            InitialDialogId = nameof(WaterfallDialog);
        }
 public FlightBookingController(IFlightBookingService flightBooking)
 {
     _flightBooking = flightBooking;
 }
示例#5
0
 public BookController(IFlightBookingService flightBookingService)
 {
     _flightBookingService = flightBookingService;
 }
 public FlightReservationViewModel(
     IFlightBookingService flightBookingService)
 {
     _flightBookingService = flightBookingService;
 }
示例#7
0
 public void GivenFlightDetails(Table table)
 {
     _flightDetails        = table.CreateInstance <FlightDetails>();
     _flightBookingService = new FlightBookingService(_flightDetails);
 }
示例#8
0
 public FlightEventHandler(IFlightBookingService bookingService, IMessageSerializer messageSerializer)
 {
     _bookingService    = bookingService;
     _messageSerializer = messageSerializer;
 }