Example #1
0
        //Remove Dev
        private void RemoveDev()
        {
            SeeAllDev();

            //Get ID they want to delete
            Console.WriteLine("\nEnter ID number of Developer you would like to remove:");
            string value      = Console.ReadLine();
            int    employeeID = Convert.ToInt32(value);

            //call delete method
            bool wasDeleted = _contentRepo.RemoveDevFromList(employeeID);

            //if content deleted confirm
            if (wasDeleted)
            {
                Console.WriteLine("Developer successfully deleted.");
            }
            else
            {
                Console.WriteLine("Error... Developer could not be deleted.");
            }

            //otherwise state failed
        }
        public void RemoveDevContent_ShouldReturnTrue()
        {
            bool deleteResult = _repo.RemoveDevFromList(_content.IdentificationNumber);

            Assert.IsTrue(deleteResult);
        }