Exemplo n.º 1
0
 public PathFinderSevice(IMemoryCache cache, IFlightsService flightService)
 {
     _flightService   = flightService;
     _cache           = cache;
     _cacheExpireTime = 10;
     _resultPath      = new List <AirRoute>();
 }
Exemplo n.º 2
0
 public FlightsController(ILoggerFactory logger,
                          IFlightsService flightsService,
                          IDestinationsFilter destinationsFilter)
 {
     _logger             = logger.CreateLogger(GetType());
     _flightsService     = flightsService;
     _destinationsFilter = destinationsFilter;
 }
Exemplo n.º 3
0
        public FlightViewModel(INavigationService navigationService, IFlightsService service) : base(navigationService)
        {
            _model        = new Flight();
            _service      = service;
            GoBackCommand = new RelayCommand(goBack);

            SaveItemCommand = new RelayCommand(SaveItem);

            MessengerInstance.Register <Flight>(this, entity =>
            {
                _model = entity;
            });
        }
Exemplo n.º 4
0
 public TestController(IPaymentsService paymentService, ISessionBagService sessionBag, IUserSessionService userSessionService, IMapper mapper,
                       IPassengersService passengersService, IBookingService bookingService, IFlightsService flightService, IContactsService contactsService, IHttpContextAccessor httpContextAccessor,
                       IQueueService queueService)
 {
     _paymentService      = paymentService;
     _mapper              = mapper;
     _flightsService      = flightService;
     _contactsService     = contactsService;
     _passengersService   = passengersService;
     _bookingService      = bookingService;
     _sessionBag          = sessionBag;
     _userSessionService  = userSessionService;
     _httpContextAccessor = httpContextAccessor;
     _queueService        = queueService;
 }
Exemplo n.º 5
0
        public FlightsController(
            IDestinationsService destinationsService,
            IFlightsService flightsService)
        {
            // Guard clauses
            if (destinationsService is null)
            {
                throw new ArgumentNullException(nameof(destinationsService));
            }

            if (flightsService is null)
            {
                throw new ArgumentNullException(nameof(flightsService));
            }

            this.destinationsService = destinationsService;
            this.flightsService      = flightsService;
        }
Exemplo n.º 6
0
        public FlightsViewModel(INavigationService navigationService, IFlightsService service)
            : base(navigationService)
        {
            Title                     = "Flights";
            _service                  = service;
            AddNewItemCommand         = new RelayCommand(AddNewItem);
            EditSelectedItemCommand   = new RelayCommand(EditSelectedItem);
            DeleteSelectedItemCommand = new RelayCommand(DeleteSelectedItem);
            SearchCommand             = new RelayCommand(SearchAsync);


            UpdateDataAsync().GetAwaiter();

            MessengerInstance.Register <Flight>(this, entity =>
            {
                if (entity != null)
                {
                    UpdateDataAsync().GetAwaiter();
                }
            });
        }
 public HomeController(IFlightsService flightsService)
 {
     _flightsService = flightsService;
 }
Exemplo n.º 8
0
 public ParagliderController(IParagliderService paragliderService, IFlightsService flightsService)
 {
     _paragliderService = paragliderService ?? throw new ArgumentNullException(nameof(paragliderService));
     _flightsService    = flightsService ?? throw new ArgumentNullException(nameof(flightsService));
 }
Exemplo n.º 9
0
 public FlightsController(IBusPublisher busPublisher, IFlightsService flightsService,
                          ITracer tracer)
     : base(busPublisher, tracer)
 {
     _flightsService = flightsService;
 }
Exemplo n.º 10
0
 public SiteController(ISitesService sitesService, IFlightsService flightsService)
 {
     _sitesService  = sitesService ?? throw new ArgumentNullException(nameof(sitesService));
     _flightService = flightsService ?? throw new ArgumentNullException(nameof(flightsService));
 }
Exemplo n.º 11
0
 public FlightBookingsController(IReservationService reservationService, IFlightsService flightService)
 {
     this.reservationService = reservationService;
     this.flightService      = flightService;
 }
Exemplo n.º 12
0
 public RouteController(IRouteFinder routeFinder, IFlightsService flightsService)
 {
     this.routeFinder    = routeFinder ?? throw new ArgumentNullException(nameof(routeFinder));
     this.flightsService = flightsService ?? throw new ArgumentNullException(nameof(flightsService));;
 }
Exemplo n.º 13
0
 public ReservationsController(IFlightsService flightsService, IAirportsService airportsService, IReservationsService reservationsService)
 {
     this.flightsService      = flightsService;
     this.airportsService     = airportsService;
     this.reservationsService = reservationsService;
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="flightsService">Flight service.</param>
 /// <param name="loggerFactory">Logger.</param>
 /// <param name="pathFinder">PathFinder service.</param>
 public PathFinderController(IFlightsService flightsService, ILoggerFactory loggerFactory, IPathFinder pathFinder)
 {
     _flightsService = flightsService;
     _pathFinder     = pathFinder;
     _logger         = loggerFactory.CreateLogger(typeof(PathFinderController));
 }
Exemplo n.º 15
0
 public CreateFlightHandler(IFlightsService flightsService)
 {
     _flightsService = flightsService;
 }
Exemplo n.º 16
0
 public MainPageViewModel(IFlightsService p_flightsService)
 {
     _flightService = p_flightsService;
     Flights        = new ObservableCollection <Flight>(_flightService.GetByDate(DateTime.Now));
 }
Exemplo n.º 17
0
 public FlightsController(IFlightsService flightService)
 {
     _flightsService = flightService ?? throw new ArgumentNullException(nameof(flightService));
 }
Exemplo n.º 18
0
 public FlightsController(IFlightsService flightsService, IAircraftsService aircraftsService, IAirportsService airportsService)
 {
     this.flightsService   = flightsService;
     this.aircraftsService = aircraftsService;
     this.airportsService  = airportsService;
 }
Exemplo n.º 19
0
 public RouteFinder(IFlightsService flightsService, RouteFinderConfig config)
 {
     this.flightsService = flightsService;
     this.config         = config;
 }
Exemplo n.º 20
0
 public RouteController(IRouteFinder routeFinder, IFlightsService flightsService)
 {
     this.routeFinder    = routeFinder;
     this.flightsService = flightsService;
 }
 public FlightsController(IFlightsService flightsSrvice)
 {
     _flightsSrvice = flightsSrvice;
 }
Exemplo n.º 22
0
 public FlightController(IFlightsService flightService, IUserService userService, IReservationService reservationService)
 {
     this.flightService      = flightService;
     this.userService        = userService;
     this.reservationService = reservationService;
 }
Exemplo n.º 23
0
 public FlightController(ILogger <FlightController> logger, IFlightsService flightsService) : base(logger)
     => _flightsService = flightsService;
 public FlightDataModelsController(ApplicationDbContext context, IFlightsService flightsService)
 {
     _context            = context;
     this.flightsService = flightsService;
 }
Exemplo n.º 25
0
 public FlightsController(IFlightsService flightsService, ILogger <FlightsController> logger)
 {
     _logger         = logger;
     _flightsService = flightsService;
 }
Exemplo n.º 26
0
 public TicketBoughtHandler(IFlightsService flightsService)
 {
     _flightsService = flightsService;
 }
Exemplo n.º 27
0
 public VacationBookingCoordinator()
 {
     _carsService    = RestClient.For <ICarsService>("http://localhost:5001");
     _hotelsService  = RestClient.For <IHotelsService>("http://localhost:5003");
     _flightsService = RestClient.For <IFlightsService>("http://localhost:5002");
 }
Exemplo n.º 28
0
 public MainHealthCheck(IFlightsService flightsService)
 {
     _flightsService = flightsService;
 }