Ejemplo n.º 1
0
        public void StaticClientLiveRequest()
        {
            var options = new Client.Options("EHDL", new DateTime(2015, 05, 30));
            var flights = Client.GetFlights(options);
            Assert.IsNotNull(flights);
            Assert.IsTrue(flights.Count == 20);

            flights = Client.GetFlights(options, false);
            Assert.IsTrue(flights.Count == 20);
        }
Ejemplo n.º 2
0
 public void StaticClientLiveInvalidAirportRequest()
 {
     try
     {
         var options = new Client.Options("EKKS", new DateTime(2015, 05, 30));
         var flights = Client.GetFlights(options, false);
         Assert.Fail();
     }
     catch (Client.InvalidAirportException iae)
     {
         Assert.IsNotNull(iae);
     }
 }
Ejemplo n.º 3
0
 public void StaticClientStoredRequest()
 {
     var options = new Client.Options("EHDL", new DateTime(2015, 05, 30));
     var flights = Client.GetFlights(options);
     Assert.IsTrue(flights.Count == 20);
 }