Ejemplo n.º 1
0
        public void opening_database_from_ThirdParty_FlightData()
        {
            FlightDatabase db = new FlightDatabase(GetFlightDataPath());

            {
                var f0 = db.GetFlights(new DateTime(2010, 7, 26), Airport.FindByCode("BER"), Airport.FindByCode("LHR"));
                var f1 = db.GetFlights(new DateTime(2010, 7, 26), Airport.FindByCode("CDG"), Airport.FindByCode("LHR"));
                var f2 = db.GetFlights(new DateTime(2010, 7, 26), Airport.FindByCode("MRS"), Airport.FindByCode("LHR"));
                var f3 = db.GetFlights(new DateTime(2010, 7, 26), Airport.FindByCode("LYS"), Airport.FindByCode("LHR"));
                var f4 = db.GetFlights(new DateTime(2010, 7, 26), Airport.FindByCode("MAN"), Airport.FindByCode("LHR"));
                var f5 = db.GetFlights(new DateTime(2010, 7, 26), Airport.FindByCode("BIO"), Airport.FindByCode("LHR"));
                var f6 = db.GetFlights(new DateTime(2010, 7, 26), Airport.FindByCode("JFK"), Airport.FindByCode("LHR"));
                var f7 = db.GetFlights(new DateTime(2010, 7, 26), Airport.FindByCode("TUN"), Airport.FindByCode("LHR"));
                var f8 = db.GetFlights(new DateTime(2010, 7, 26), Airport.FindByCode("MXP"), Airport.FindByCode("LHR"));
            }
            {
                var f0 = db.GetFlights(new DateTime(2010, 7, 27), Airport.FindByCode("BER"), Airport.FindByCode("LHR"));
                var f1 = db.GetFlights(new DateTime(2010, 7, 27), Airport.FindByCode("CDG"), Airport.FindByCode("LHR"));
                var f2 = db.GetFlights(new DateTime(2010, 7, 27), Airport.FindByCode("MRS"), Airport.FindByCode("LHR"));
                var f3 = db.GetFlights(new DateTime(2010, 7, 27), Airport.FindByCode("LYS"), Airport.FindByCode("LHR"));
                var f4 = db.GetFlights(new DateTime(2010, 7, 27), Airport.FindByCode("MAN"), Airport.FindByCode("LHR"));
                var f5 = db.GetFlights(new DateTime(2010, 7, 27), Airport.FindByCode("BIO"), Airport.FindByCode("LHR"));
                var f6 = db.GetFlights(new DateTime(2010, 7, 27), Airport.FindByCode("JFK"), Airport.FindByCode("LHR"));
                var f7 = db.GetFlights(new DateTime(2010, 7, 27), Airport.FindByCode("TUN"), Airport.FindByCode("LHR"));
                var f8 = db.GetFlights(new DateTime(2010, 7, 27), Airport.FindByCode("MXP"), Airport.FindByCode("LHR"));
            }

            {
                var f0 = db.GetFlights(new DateTime(2010, 8, 3), Airport.FindByCode("LHR"), Airport.FindByCode("BER"));
                var f1 = db.GetFlights(new DateTime(2010, 8, 3), Airport.FindByCode("LHR"), Airport.FindByCode("CDG"));
                var f2 = db.GetFlights(new DateTime(2010, 8, 3), Airport.FindByCode("LHR"), Airport.FindByCode("MRS"));
                var f3 = db.GetFlights(new DateTime(2010, 8, 3), Airport.FindByCode("LHR"), Airport.FindByCode("LYS"));
                var f4 = db.GetFlights(new DateTime(2010, 8, 3), Airport.FindByCode("LHR"), Airport.FindByCode("MAN"));
                var f5 = db.GetFlights(new DateTime(2010, 8, 3), Airport.FindByCode("LHR"), Airport.FindByCode("BIO"));
                var f6 = db.GetFlights(new DateTime(2010, 8, 3), Airport.FindByCode("LHR"), Airport.FindByCode("JFK"));
                var f7 = db.GetFlights(new DateTime(2010, 8, 3), Airport.FindByCode("LHR"), Airport.FindByCode("TUN"));
                var f8 = db.GetFlights(new DateTime(2010, 8, 3), Airport.FindByCode("LHR"), Airport.FindByCode("MXP"));
            }
            {
                var f0 = db.GetFlights(new DateTime(2010, 8, 4), Airport.FindByCode("LHR"), Airport.FindByCode("BER"));
                var f1 = db.GetFlights(new DateTime(2010, 8, 4), Airport.FindByCode("LHR"), Airport.FindByCode("CDG"));
                var f2 = db.GetFlights(new DateTime(2010, 8, 4), Airport.FindByCode("LHR"), Airport.FindByCode("MRS"));
                var f3 = db.GetFlights(new DateTime(2010, 8, 4), Airport.FindByCode("LHR"), Airport.FindByCode("LYS"));
                var f4 = db.GetFlights(new DateTime(2010, 8, 4), Airport.FindByCode("LHR"), Airport.FindByCode("MAN"));
                var f5 = db.GetFlights(new DateTime(2010, 8, 4), Airport.FindByCode("LHR"), Airport.FindByCode("BIO"));
                var f6 = db.GetFlights(new DateTime(2010, 8, 4), Airport.FindByCode("LHR"), Airport.FindByCode("JFK"));
                var f7 = db.GetFlights(new DateTime(2010, 8, 4), Airport.FindByCode("LHR"), Airport.FindByCode("TUN"));
                var f8 = db.GetFlights(new DateTime(2010, 8, 4), Airport.FindByCode("LHR"), Airport.FindByCode("MXP"));
            }
        }
Ejemplo n.º 2
0
        public void GetFlights()
        {
            FlightDatabase db = new FlightDatabase(@"C:\Intech\2016-1\S9-10\Repo\ThirdParty\FlightData\");

            {
                var f0 = db.GetFlights(new DateTime(2010, 7, 26), Airport.FindByCode("BER"), Airport.FindByCode("LHR"));
                var f1 = db.GetFlights(new DateTime(2010, 7, 26), Airport.FindByCode("CDG"), Airport.FindByCode("LHR"));
                var f2 = db.GetFlights(new DateTime(2010, 7, 26), Airport.FindByCode("MRS"), Airport.FindByCode("LHR"));
                var f3 = db.GetFlights(new DateTime(2010, 7, 26), Airport.FindByCode("LYS"), Airport.FindByCode("LHR"));
                var f4 = db.GetFlights(new DateTime(2010, 7, 26), Airport.FindByCode("MAN"), Airport.FindByCode("LHR"));
                var f5 = db.GetFlights(new DateTime(2010, 7, 26), Airport.FindByCode("BIO"), Airport.FindByCode("LHR"));
                var f6 = db.GetFlights(new DateTime(2010, 7, 26), Airport.FindByCode("JFK"), Airport.FindByCode("LHR"));
                var f7 = db.GetFlights(new DateTime(2010, 7, 26), Airport.FindByCode("TUN"), Airport.FindByCode("LHR"));
                var f8 = db.GetFlights(new DateTime(2010, 7, 26), Airport.FindByCode("MXP"), Airport.FindByCode("LHR"));
            }
            {
                var f0 = db.GetFlights(new DateTime(2010, 7, 27), Airport.FindByCode("BER"), Airport.FindByCode("LHR"));
                var f1 = db.GetFlights(new DateTime(2010, 7, 27), Airport.FindByCode("CDG"), Airport.FindByCode("LHR"));
                var f2 = db.GetFlights(new DateTime(2010, 7, 27), Airport.FindByCode("MRS"), Airport.FindByCode("LHR"));
                var f3 = db.GetFlights(new DateTime(2010, 7, 27), Airport.FindByCode("LYS"), Airport.FindByCode("LHR"));
                var f4 = db.GetFlights(new DateTime(2010, 7, 27), Airport.FindByCode("MAN"), Airport.FindByCode("LHR"));
                var f5 = db.GetFlights(new DateTime(2010, 7, 27), Airport.FindByCode("BIO"), Airport.FindByCode("LHR"));
                var f6 = db.GetFlights(new DateTime(2010, 7, 27), Airport.FindByCode("JFK"), Airport.FindByCode("LHR"));
                var f7 = db.GetFlights(new DateTime(2010, 7, 27), Airport.FindByCode("TUN"), Airport.FindByCode("LHR"));
                var f8 = db.GetFlights(new DateTime(2010, 7, 27), Airport.FindByCode("MXP"), Airport.FindByCode("LHR"));
            }

            {
                var f0 = db.GetFlights(new DateTime(2010, 8, 3), Airport.FindByCode("LHR"), Airport.FindByCode("BER"));
                var f1 = db.GetFlights(new DateTime(2010, 8, 3), Airport.FindByCode("LHR"), Airport.FindByCode("CDG"));
                var f2 = db.GetFlights(new DateTime(2010, 8, 3), Airport.FindByCode("LHR"), Airport.FindByCode("MRS"));
                var f3 = db.GetFlights(new DateTime(2010, 8, 3), Airport.FindByCode("LHR"), Airport.FindByCode("LYS"));
                var f4 = db.GetFlights(new DateTime(2010, 8, 3), Airport.FindByCode("LHR"), Airport.FindByCode("MAN"));
                var f5 = db.GetFlights(new DateTime(2010, 8, 3), Airport.FindByCode("LHR"), Airport.FindByCode("BIO"));
                var f6 = db.GetFlights(new DateTime(2010, 8, 3), Airport.FindByCode("LHR"), Airport.FindByCode("JFK"));
                var f7 = db.GetFlights(new DateTime(2010, 8, 3), Airport.FindByCode("LHR"), Airport.FindByCode("TUN"));
                var f8 = db.GetFlights(new DateTime(2010, 8, 3), Airport.FindByCode("LHR"), Airport.FindByCode("MXP"));
            }
            {
                var f0 = db.GetFlights(new DateTime(2010, 8, 4), Airport.FindByCode("LHR"), Airport.FindByCode("BER"));
                var f1 = db.GetFlights(new DateTime(2010, 8, 4), Airport.FindByCode("LHR"), Airport.FindByCode("CDG"));
                var f2 = db.GetFlights(new DateTime(2010, 8, 4), Airport.FindByCode("LHR"), Airport.FindByCode("MRS"));
                var f3 = db.GetFlights(new DateTime(2010, 8, 4), Airport.FindByCode("LHR"), Airport.FindByCode("LYS"));
                var f4 = db.GetFlights(new DateTime(2010, 8, 4), Airport.FindByCode("LHR"), Airport.FindByCode("MAN"));
                var f5 = db.GetFlights(new DateTime(2010, 8, 4), Airport.FindByCode("LHR"), Airport.FindByCode("BIO"));
                var f6 = db.GetFlights(new DateTime(2010, 8, 4), Airport.FindByCode("LHR"), Airport.FindByCode("JFK"));
                var f7 = db.GetFlights(new DateTime(2010, 8, 4), Airport.FindByCode("LHR"), Airport.FindByCode("TUN"));
                var f8 = db.GetFlights(new DateTime(2010, 8, 4), Airport.FindByCode("LHR"), Airport.FindByCode("MXP"));
            }
        }
Ejemplo n.º 3
0
        public void GetFlights()
        {
            FlightDatabase db = new FlightDatabase(@"C:\Users\Grandvizir\Documents\GitHub\Algo-2015-1\ThirdParty\FlightData\");

            {
                var f0 = db.GetFlights(new DateTime(2010, 7, 26), Airport.FindByCode("BER"), Airport.FindByCode("LHR"));
                var f1 = db.GetFlights(new DateTime(2010, 7, 26), Airport.FindByCode("CDG"), Airport.FindByCode("LHR"));
                var f2 = db.GetFlights(new DateTime(2010, 7, 26), Airport.FindByCode("MRS"), Airport.FindByCode("LHR"));
                var f3 = db.GetFlights(new DateTime(2010, 7, 26), Airport.FindByCode("LYS"), Airport.FindByCode("LHR"));
                var f4 = db.GetFlights(new DateTime(2010, 7, 26), Airport.FindByCode("MAN"), Airport.FindByCode("LHR"));
                var f5 = db.GetFlights(new DateTime(2010, 7, 26), Airport.FindByCode("BIO"), Airport.FindByCode("LHR"));
                var f6 = db.GetFlights(new DateTime(2010, 7, 26), Airport.FindByCode("JFK"), Airport.FindByCode("LHR"));
                var f7 = db.GetFlights(new DateTime(2010, 7, 26), Airport.FindByCode("TUN"), Airport.FindByCode("LHR"));
                var f8 = db.GetFlights(new DateTime(2010, 7, 26), Airport.FindByCode("MXP"), Airport.FindByCode("LHR"));
            }
            {
                var f0 = db.GetFlights(new DateTime(2010, 7, 27), Airport.FindByCode("BER"), Airport.FindByCode("LHR"));
                var f1 = db.GetFlights(new DateTime(2010, 7, 27), Airport.FindByCode("CDG"), Airport.FindByCode("LHR"));
                var f2 = db.GetFlights(new DateTime(2010, 7, 27), Airport.FindByCode("MRS"), Airport.FindByCode("LHR"));
                var f3 = db.GetFlights(new DateTime(2010, 7, 27), Airport.FindByCode("LYS"), Airport.FindByCode("LHR"));
                var f4 = db.GetFlights(new DateTime(2010, 7, 27), Airport.FindByCode("MAN"), Airport.FindByCode("LHR"));
                var f5 = db.GetFlights(new DateTime(2010, 7, 27), Airport.FindByCode("BIO"), Airport.FindByCode("LHR"));
                var f6 = db.GetFlights(new DateTime(2010, 7, 27), Airport.FindByCode("JFK"), Airport.FindByCode("LHR"));
                var f7 = db.GetFlights(new DateTime(2010, 7, 27), Airport.FindByCode("TUN"), Airport.FindByCode("LHR"));
                var f8 = db.GetFlights(new DateTime(2010, 7, 27), Airport.FindByCode("MXP"), Airport.FindByCode("LHR"));
            }

            {
                var f0 = db.GetFlights(new DateTime(2010, 8, 3), Airport.FindByCode("LHR"), Airport.FindByCode("BER"));
                var f1 = db.GetFlights(new DateTime(2010, 8, 3), Airport.FindByCode("LHR"), Airport.FindByCode("CDG"));
                var f2 = db.GetFlights(new DateTime(2010, 8, 3), Airport.FindByCode("LHR"), Airport.FindByCode("MRS"));
                var f3 = db.GetFlights(new DateTime(2010, 8, 3), Airport.FindByCode("LHR"), Airport.FindByCode("LYS"));
                var f4 = db.GetFlights(new DateTime(2010, 8, 3), Airport.FindByCode("LHR"), Airport.FindByCode("MAN"));
                var f5 = db.GetFlights(new DateTime(2010, 8, 3), Airport.FindByCode("LHR"), Airport.FindByCode("BIO"));
                var f6 = db.GetFlights(new DateTime(2010, 8, 3), Airport.FindByCode("LHR"), Airport.FindByCode("JFK"));
                var f7 = db.GetFlights(new DateTime(2010, 8, 3), Airport.FindByCode("LHR"), Airport.FindByCode("TUN"));
                var f8 = db.GetFlights(new DateTime(2010, 8, 3), Airport.FindByCode("LHR"), Airport.FindByCode("MXP"));
            }
            {
                var f0 = db.GetFlights(new DateTime(2010, 8, 4), Airport.FindByCode("LHR"), Airport.FindByCode("BER"));
                var f1 = db.GetFlights(new DateTime(2010, 8, 4), Airport.FindByCode("LHR"), Airport.FindByCode("CDG"));
                var f2 = db.GetFlights(new DateTime(2010, 8, 4), Airport.FindByCode("LHR"), Airport.FindByCode("MRS"));
                var f3 = db.GetFlights(new DateTime(2010, 8, 4), Airport.FindByCode("LHR"), Airport.FindByCode("LYS"));
                var f4 = db.GetFlights(new DateTime(2010, 8, 4), Airport.FindByCode("LHR"), Airport.FindByCode("MAN"));
                var f5 = db.GetFlights(new DateTime(2010, 8, 4), Airport.FindByCode("LHR"), Airport.FindByCode("BIO"));
                var f6 = db.GetFlights(new DateTime(2010, 8, 4), Airport.FindByCode("LHR"), Airport.FindByCode("JFK"));
                var f7 = db.GetFlights(new DateTime(2010, 8, 4), Airport.FindByCode("LHR"), Airport.FindByCode("TUN"));
                var f8 = db.GetFlights(new DateTime(2010, 8, 4), Airport.FindByCode("LHR"), Airport.FindByCode("MXP"));
            }
        }
Ejemplo n.º 4
0
        public void GetFlights()
        {
            FlightDatabase db = new FlightDatabase(Path.Combine(TestHelper.SolutionFolder, @"ThirdParty\FlightData\"));

            {
                var f0 = db.GetFlights(new DateTime(2010, 7, 26), Airport.FindByCode("BER"), Airport.FindByCode("LHR"));
                var f1 = db.GetFlights(new DateTime(2010, 7, 26), Airport.FindByCode("CDG"), Airport.FindByCode("LHR"));
                var f2 = db.GetFlights(new DateTime(2010, 7, 26), Airport.FindByCode("MRS"), Airport.FindByCode("LHR"));
                var f3 = db.GetFlights(new DateTime(2010, 7, 26), Airport.FindByCode("LYS"), Airport.FindByCode("LHR"));
                var f4 = db.GetFlights(new DateTime(2010, 7, 26), Airport.FindByCode("MAN"), Airport.FindByCode("LHR"));
                var f5 = db.GetFlights(new DateTime(2010, 7, 26), Airport.FindByCode("BIO"), Airport.FindByCode("LHR"));
                var f6 = db.GetFlights(new DateTime(2010, 7, 26), Airport.FindByCode("JFK"), Airport.FindByCode("LHR"));
                var f7 = db.GetFlights(new DateTime(2010, 7, 26), Airport.FindByCode("TUN"), Airport.FindByCode("LHR"));
                var f8 = db.GetFlights(new DateTime(2010, 7, 26), Airport.FindByCode("MXP"), Airport.FindByCode("LHR"));
            }
            {
                var f0 = db.GetFlights(new DateTime(2010, 7, 27), Airport.FindByCode("BER"), Airport.FindByCode("LHR"));
                var f1 = db.GetFlights(new DateTime(2010, 7, 27), Airport.FindByCode("CDG"), Airport.FindByCode("LHR"));
                var f2 = db.GetFlights(new DateTime(2010, 7, 27), Airport.FindByCode("MRS"), Airport.FindByCode("LHR"));
                var f3 = db.GetFlights(new DateTime(2010, 7, 27), Airport.FindByCode("LYS"), Airport.FindByCode("LHR"));
                var f4 = db.GetFlights(new DateTime(2010, 7, 27), Airport.FindByCode("MAN"), Airport.FindByCode("LHR"));
                var f5 = db.GetFlights(new DateTime(2010, 7, 27), Airport.FindByCode("BIO"), Airport.FindByCode("LHR"));
                var f6 = db.GetFlights(new DateTime(2010, 7, 27), Airport.FindByCode("JFK"), Airport.FindByCode("LHR"));
                var f7 = db.GetFlights(new DateTime(2010, 7, 27), Airport.FindByCode("TUN"), Airport.FindByCode("LHR"));
                var f8 = db.GetFlights(new DateTime(2010, 7, 27), Airport.FindByCode("MXP"), Airport.FindByCode("LHR"));
            }

            {
                var f0 = db.GetFlights(new DateTime(2010, 8, 3), Airport.FindByCode("LHR"), Airport.FindByCode("BER"));
                var f1 = db.GetFlights(new DateTime(2010, 8, 3), Airport.FindByCode("LHR"), Airport.FindByCode("CDG"));
                var f2 = db.GetFlights(new DateTime(2010, 8, 3), Airport.FindByCode("LHR"), Airport.FindByCode("MRS"));
                var f3 = db.GetFlights(new DateTime(2010, 8, 3), Airport.FindByCode("LHR"), Airport.FindByCode("LYS"));
                var f4 = db.GetFlights(new DateTime(2010, 8, 3), Airport.FindByCode("LHR"), Airport.FindByCode("MAN"));
                var f5 = db.GetFlights(new DateTime(2010, 8, 3), Airport.FindByCode("LHR"), Airport.FindByCode("BIO"));
                var f6 = db.GetFlights(new DateTime(2010, 8, 3), Airport.FindByCode("LHR"), Airport.FindByCode("JFK"));
                var f7 = db.GetFlights(new DateTime(2010, 8, 3), Airport.FindByCode("LHR"), Airport.FindByCode("TUN"));
                var f8 = db.GetFlights(new DateTime(2010, 8, 3), Airport.FindByCode("LHR"), Airport.FindByCode("MXP"));
            }
            {
                var f0 = db.GetFlights(new DateTime(2010, 8, 4), Airport.FindByCode("LHR"), Airport.FindByCode("BER"));
                var f1 = db.GetFlights(new DateTime(2010, 8, 4), Airport.FindByCode("LHR"), Airport.FindByCode("CDG"));
                var f2 = db.GetFlights(new DateTime(2010, 8, 4), Airport.FindByCode("LHR"), Airport.FindByCode("MRS"));
                var f3 = db.GetFlights(new DateTime(2010, 8, 4), Airport.FindByCode("LHR"), Airport.FindByCode("LYS"));
                var f4 = db.GetFlights(new DateTime(2010, 8, 4), Airport.FindByCode("LHR"), Airport.FindByCode("MAN"));
                var f5 = db.GetFlights(new DateTime(2010, 8, 4), Airport.FindByCode("LHR"), Airport.FindByCode("BIO"));
                var f6 = db.GetFlights(new DateTime(2010, 8, 4), Airport.FindByCode("LHR"), Airport.FindByCode("JFK"));
                var f7 = db.GetFlights(new DateTime(2010, 8, 4), Airport.FindByCode("LHR"), Airport.FindByCode("TUN"));
                var f8 = db.GetFlights(new DateTime(2010, 8, 4), Airport.FindByCode("LHR"), Airport.FindByCode("MXP"));
            }
        }