LondonBike.TripLog.MakeDummyData C# (CSharp) Method

MakeDummyData() public static method

public static MakeDummyData ( ) : void
return void
        public static void MakeDummyData()
        {
            Util.Log("Making dummy trip data");

            string datafilename = Path.Combine(Util.DocDir, "triplog.txt");
                if (File.Exists(datafilename))
                    File.Delete(datafilename);
            allTrips = null;

            var foo = All;

            allTrips.Add(new TripLog {
                Ticks = DateTime.Now.Ticks,
                StartLat = 51.49580589,
                StartLon =  -0.127575233,
                EndLat = 51.50581776,
                EndLon = -0.100186337,
                StartStation = "Smith Square",
                EndStation = "Bankside Mix",
                TimeInSeconds = 851,
                DistanceInMeters = 3212
            });

            allTrips.Add(new TripLog {
                Ticks = DateTime.Now.Ticks,
                StartLat = 51.49580589,
                StartLon =  -0.127575233,
                EndLat = 51.50581776,
                EndLon = -0.100186337,
                StartStation = "Smith Square",
                EndStation = "Bankside Mix",
                TimeInSeconds = 851,
                DistanceInMeters = 3212
            });allTrips.Add(new TripLog {
                Ticks = DateTime.Now.Ticks,
                StartLat = 51.49580589,
                StartLon =  -0.127575233,
                EndLat = 51.50581776,
                EndLon = -0.100186337,
                StartStation = "Smith Square",
                EndStation = "Bankside Mix",
                TimeInSeconds = 851,
                DistanceInMeters = 3212
            });allTrips.Add(new TripLog {
                Ticks = DateTime.Now.Ticks,
                StartLat = 51.49580589,
                StartLon =  -0.127575233,
                EndLat = 51.50581776,
                EndLon = -0.100186337,
                StartStation = "Smith Square",
                EndStation = "Bankside Mix",
                TimeInSeconds = 851,
                DistanceInMeters = 3212
            });

            PersistToDisk();

            allTrips = null;

            foo = All;
        }