//delete public void RemoveHybridFromList_ShouldReturnTrue() { //arrange Electric electric = _repo.GetElectricByModel("Model 3"); //act bool removeHybrid = _repo.RemoveElectricFromList("Model 3"); //assert Assert.IsTrue(removeHybrid); }
private void ViewElectricDetails() { Console.Clear(); Console.WriteLine("\nEnter Model of Electric Car"); string model = Console.ReadLine(); Electric electric = electric_Repo.GetElectricByModel(model); if (model != null) { Console.WriteLine($"Make: {electric.Make}\n" + $"Model: {electric.Model}\n" + $"Fuel Efficiency: {electric.FuelEfficiency}"); } }