private void UpdateCustomerContent() // UPDATE CUSTOMER INFO
        {
            Console.Clear();
            ViewAllContent();

            Console.WriteLine("\nEnter the full name of the customer to edit their profile:");

            string oldName = Console.ReadLine().ToLower();

            CustomerContent newContent = new CustomerContent();

            Console.WriteLine("Enter customer first name:");
            newContent.FirstName = Console.ReadLine();
            Console.WriteLine("Enter customer last name:");
            newContent.LastName = Console.ReadLine();
            Console.WriteLine("Enter customer type (1-3):\n" +
                              "1) Current\n" +
                              "2) Past\n" +
                              "3) Potential");
            string typeAsString = Console.ReadLine();
            int    typeAsInt    = int.Parse(typeAsString);

            newContent.TypeOfCustomer = (CustomerType)typeAsInt;

            Console.WriteLine("\nEmail text for this customer:");
            if (typeAsInt == 1)
            {
                Console.WriteLine("Thank you for your work with us. We appreciate your loyalty. Here's a coupon.");
                newContent.Email = "Thank you for your work with us. We appreciate your loyalty. Here's a coupon.";
            }
            else if (typeAsInt == 2)
            {
                Console.WriteLine("It's been a long time since we've heard from you, we want you back.");
                newContent.Email = "It's been a long time since we've heard from you, we want you back.";
            }
            else if (typeAsInt == 3)
            {
                Console.WriteLine("We currently have the lowest rates on Helicopter Insurance!");
                newContent.Email = "We currently have the lowest rates on Helicopter Insurance!";
            }
            else
            {
                Console.WriteLine("Could not generate email text due to input error.");
            }

            _contentRepo.AddContentToList(newContent);

            bool wasUpdated = _contentRepo.UpdateCustomerContent(oldName, newContent);

            if (wasUpdated)
            {
                Console.WriteLine("\nCustomer profile successfully updated.");
            }
            else
            {
                Console.WriteLine("\nCould not update customer profile.");
            }
        }
        public void UpdateCustomerContentTest() // EDIT CUSTOMER CONTENT TEST
        {
            // ARRANGE
            GreetingRepository repo = new GreetingRepository();

            CustomerContent oldContent = new CustomerContent("Gandalf", "Thegrey", CustomerType.Potential, "We currently have the lowest rates on Helicopter Insurance!", "Gandalf Thegrey");

            repo.AddContentToList(oldContent);

            CustomerContent updatedcontent = new CustomerContent("Tom", "Bombadill", CustomerType.Past, "It's been a long time since we've heard from you, we want you back.", "Tom Bombadill");

            string name = "gandalf thegrey";

            //ACT
            bool result = repo.UpdateCustomerContent(name, updatedcontent);

            //ASSERT
            Assert.IsTrue(result);
        }