public void testEntityFramwork() { var flightWrapper = new FlightWrapper(AirportPages.BenGurion); var flights = new List <Flight>(); for (int i = 0; i < 30; i++) { var date = DateTime.Now.AddDays(i); var flight = flightWrapper.GetFlightsByDate(date); Console.WriteLine("{0}: {1} flights", date, flight.Count); flights = flights.Count == 0 ? flight : flights.Concat(flight).ToList(); } Console.WriteLine(flights.Count); //var date = DateTime.Now; //var flights = flightWrapper.GetFlightsByDate(date); var flightsHandler = new FlightsService(); flightsHandler.SaveFlights(flights); var f = flightsHandler.GetAll(); }
public void testQueryData() { var flightsHandler = new FlightsService(); var maxDate = flightsHandler.GetMaxDate(); var f = flightsHandler.GetAll(); }