Exemple #1
0
 public Drive(IVehicleService service, Vehicle car)
 {
     Start = DateTimeOffset.UtcNow;
     Car = car;
     Current = new Leg(car, DrivePath);
     this.service = service;
 }
Exemple #2
0
 public Leg(Vehicle car, string path)
 {
     Car = car;
     speedReadings = new List<Reading<double>>();
     rpmReadings = new List<Reading<double>>();
     distanceReadings = new List<Reading<Location>>();
     mafReadings = new List<Reading<double>>();
     Start = DateTimeOffset.UtcNow;
     dirPath = path;
 }