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

            //assert
            Assert.IsTrue(removeGas);
        }
Example #2
0
        private void RemoveGas()
        {
            GetListOfGas();
            Console.WriteLine("\nEnter the Model of the gas car to be removed");
            string input      = Console.ReadLine();
            bool   wasDeleted = gas_Repo.RemoveGasFromList(input);

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