Exemplo n.º 1
0
 public Airport(IAircraftService aircraftService, ICrewingService crewingService,
                IFlightOperationsService flightOperationsService)
 {
     AircraftService         = aircraftService;
     CrewingService          = crewingService;
     FlightOperationsService = flightOperationsService;
 }
Exemplo n.º 2
0
        public static async Task <Flight> GetDelayedFlight(this IFlightOperationsService service, long targetId, CancellationToken ct = default(CancellationToken))
        {
            TaskCompletionSource <Flight> tcs = new TaskCompletionSource <Flight>();

            System.Timers.Timer t = new System.Timers.Timer(1500);
            t.Elapsed += (s, e) =>
            {
                var result = service.GetFlightInfo(targetId);
                tcs.SetResult(result);
            };

            return(await tcs.Task);
        }
Exemplo n.º 3
0
 public TicketsController(IMapper mapper, IFlightOperationsService service)
 {
     this.mapper  = mapper;
     this.service = service;
 }
Exemplo n.º 4
0
 public TicketsController(IFlightOperationsService service)
 {
     this.service = service;
 }
Exemplo n.º 5
0
 public DeparturesController(IFlightOperationsService service)
 {
     this.service = service;
 }
Exemplo n.º 6
0
 public AiroportService(IAircraftService aircraftService, ICrewingService crewingService,
                        IFlightOperationsService flightOperationsService)
     : base(aircraftService, crewingService, flightOperationsService)
 {
     ticketPriceDelta = ticketPriceBase / 100 * 48 + priceDeltaConnst;
 }
Exemplo n.º 7
0
 public DeparturesController(IMapper mapper, IFlightOperationsService service)
 {
     this.mapper  = mapper;
     this.service = service;
 }
Exemplo n.º 8
0
 public AiroportService(IAircraftService aircraftService, ICrewingService crewingService,
                        IFlightOperationsService flightOperationsService)
     : base(aircraftService, crewingService, flightOperationsService)
 {
 }