public string ReadCar(ConsoleOutputService outService) { outService.WriteMessage("Please entere the your's car name......."); var carName = Console.ReadLine(); return(carName); }
public int ReadCommand(ConsoleOutputService outService) { outService.WriteMessage("---------------------------Welcome----------------------------------------"); outService.WriteMessage("Please Choose Op:\t0:AddGas\t1:Moving\t2:Stoping\t3:TurnOnTheLights\t4:TurnOfTheLights"); return(int.Parse(Console.ReadLine())); }
void TurnOfTheLights(Car car, ConsoleOutputService outService) { outService.WriteMessage(string.Format("Turn Of The Lights of {0}< < < < <", car.Name)); }
void Moving(Car car, ConsoleOutputService outService) { outService.WriteMessage(string.Format("The {0} is moving>>>>>>>>>>", car.Name)); }
void Stopping(Car car, ConsoleOutputService outService) { outService.WriteMessage(string.Format("the {0} now is stoped<><><><>", car.Name)); }
void AddGas(Car car, ConsoleOutputService outService) { outService.WriteMessage(string.Format("Add Gas into {0}.........", car.Name)); }