Exemplo 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);
        }
Exemplo n.º 2
0
        private void RemoveElectric()
        {
            GetListOfElectric();
            Console.WriteLine("\nEnter the Model of the electric car to be removed");
            string input      = Console.ReadLine();
            bool   wasDeleted = electric_Repo.RemoveElectricFromList(input);

            if (wasDeleted)
            {
                Console.WriteLine("Electric car was deleted.");
            }
            else
            {
                Console.WriteLine("Electric car could not be deleted.");
            }
        }