private void ViewAllContent()  // VIEW ALL CONTENT IN ALPHABETICAL ORDER
        {
            Console.Clear();
            List <CustomerContent> listOfContent = _contentRepo.GetContentList().OrderBy(order => order.LastName).ToList();

            Console.WriteLine("{0,-10} {1, -10} {2, -10} {3, -20}", "FirstName", "LastName", "Type", "Email");

            foreach (CustomerContent content in listOfContent)
            {
                Console.WriteLine("{0,-10} {1, -10} {2, -10} {3, -20}", $"{content.FirstName}", $"{content.LastName}", $"{content.TypeOfCustomer}", $"{content.Email}");
            }
        }
        public void ViewAllCustomerContentTest() // VIEW ALL CUSTOMERS TEST
        {
            //ARRANGE
            SeedContentList();
            List <CustomerContent> retrievedList;

            //ACT
            retrievedList = _testRepo.GetContentList();
            int count = retrievedList.Count;

            //ASSERT
            Assert.AreEqual(3, count);
        }
        public void AddCustomerContentTest() // ADD CUSTOMER TO EMAIL LIST TEST
        {
            //ARRANGE
            CustomerContent        content   = new CustomerContent();
            GreetingRepository     repo      = new GreetingRepository();
            List <CustomerContent> localList = repo.GetContentList();

            // ACT
            int beforeCount = localList.Count;

            repo.AddContentToList(content);
            int actual   = localList.Count;
            int expected = beforeCount + 1;

            //Assert
            Assert.AreEqual(expected, actual);
        }