public Drive(IVehicleService service, Vehicle car) { Start = DateTimeOffset.UtcNow; Car = car; Current = new Leg(car, DrivePath); this.service = service; }
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; }