private void GetOffToStart() { Console.WriteLine("Participants of the race:"); foreach (Car car in _cars) { getStart += car.GetOffToStart; } }
private void StartRace() { for (int i = 0; i < _cars.Length; i++) { if (_cars[i] is Bus) { startRace += ((Bus)_cars[i]).StartRace; } if (_cars[i] is SportCar) { startRace += ((SportCar)_cars[i]).StartRace; } if (_cars[i] is Truck) { startRace += ((Truck)_cars[i]).StartRace; } if (_cars[i] is LightCar) { startRace += ((LightCar)_cars[i]).StartRace; } } }
public RequestValidatorsModelsTests() { requestParams = new Mock <IQueryCollection>(); getStart = new GetStart(); }