public void CarsView()
        {
            Console.Clear();
            List <KomodoGreen> allCars = _carRepo.GetAllCars();

            CarTableHeader();
            foreach (KomodoGreen car in allCars)
            {
                string tableBody = String.Format("{0,-20} {1,-20} {2,-20} {3,-60}\n\n", car.ModelId, car.CarType, car.Name, car.Details);
                Console.WriteLine(tableBody);
            }
        }
Ejemplo n.º 2
0
 public void KomodoGreenRepo_GetAllCars_ShouldNotBeNull()
 {
     Assert.IsNotNull(_carRepo.GetAllCars());
 }