Ejemplo n.º 1
0
        private void DeleteABadge()
        {
            Console.Clear();

            Console.Write("What is the badge that you would like to delete?");
            int input = Convert.ToInt32(Console.ReadLine());

            bool wasDeleted = _repo.RemoveBadge(input);

            if (wasDeleted)
            {
                Console.WriteLine("Badge deleted");
                Console.ReadKey();
            }
            else
            {
                Console.WriteLine("Badge could not be deleted");
                Console.ReadKey();
            }
        }
        public void DeleteABadge()
        {
            bool badgeWasDeleted = _repo.RemoveBadge(3345);

            Assert.IsTrue(badgeWasDeleted);
        }