Ejemplo n.º 1
0
        //delete
        public void RemoveHybridFromList_ShouldReturnTrue()
        {
            //arrange
            Electric electric = _repo.GetElectricByModel("Model 3");
            //act
            bool removeHybrid = _repo.RemoveElectricFromList("Model 3");

            //assert
            Assert.IsTrue(removeHybrid);
        }
Ejemplo n.º 2
0
        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}");
            }
        }