//delete
        public void RemoveHybridFromList_ShouldReturnTrue()
        {
            //arrange
            Gas gas = _repo.GetGasByModel("Sierra");
            //act
            bool removeGas = _repo.RemoveGasFromList("Sierra");

            //assert
            Assert.IsTrue(removeGas);
        }
Beispiel #2
0
        private void ViewGasDetails()
        {
            Console.Clear();
            Console.WriteLine("\nEnter Model of Gas Car");
            string model = Console.ReadLine();
            Gas    gas   = gas_Repo.GetGasByModel(model);

            if (model != null)
            {
                Console.WriteLine($"Make: {gas.Make}\n" +
                                  $"Model: {gas.Model}\n" +
                                  $"Fuel Efficiency: {gas.FuelEfficiency}");
            }
        }