public void StartBMW2() { Vehicle v = new BMW() { Name = "BMW Race Car", DriverName = "B", Fuel = FuelType.ElectricCharging, Model = "X3", Type = VehicleType.Hover }; raceService.Start(v); //executing in thread Thread.Sleep(4000); raceService.GetAverageSpeed(v, 55, "00:18:04.05"); }
public void StartBMW1() { Vehicle v = new BMW() { Name = "BMW Sport Car", DriverName = "A", Fuel = FuelType.ElectricCharging, Model = "M1", Type = VehicleType.Hybrid }; raceService.Start(v); //executing in thread Thread.Sleep(2750); raceService.GetAverageSpeed(v, 50, "00:12:04.05"); }