public void CarDelete()
        {
            Console.Clear();
            CarsView();

            Console.WriteLine("\nEnter the ID of the car you'd like to remove.");
            bool wasDeleted = _carRepo.DeleteCar(int.Parse(Console.ReadLine()));

            if (wasDeleted)
            {
                Console.WriteLine("Car was successfuly deleted");
            }
            else
            {
                Console.WriteLine("Could not be deleted. Try again.");
            }
        }
Example #2
0
 public void KomodoGreenRepo_DeleteCar_ShouldBeTrue()
 {
     Assert.IsTrue(_carRepo.DeleteCar(_car2.ModelId));
 }