Exemple #1
0
        private static Trip GetTestTrip(Map map, int nMaxWayPoints)
        {
            MapLocation[] locations = new MapLocation[]
            {
                map["Glasgow"],
                map["Llandrindod Wells"],
                map["Scottish Islands"],
                map["Northampton"],
                map["Stoke on Trent"],
                map["Worcester"],
                map["Southampton"],
                map["Dudley"],
                map["Falkirk"],
                map["Uvbridge"],
                map["Harrow"],
                map["Nottingham"],
                map["Inverness"],
                map["Shrewsbury"],
                map["Brighton"],
            };

            return(new Trip(map["Kirkcaldy"], map["Kirkcaldy"], locations.Take(nMaxWayPoints).ToArray()));
        }