public void ShowAllCustomers() { Console.Clear(); List <CustomerContent> listOfContent = _repo.GetContents(); foreach (CustomerContent content in listOfContent) { DisplayContent(content); } Console.WriteLine("Press any key to continue"); Console.ReadKey(); }
public void GetDirectory_ShouldReturnCorrectCollection() { CustomerContent content = new CustomerContent(); CustomerContent_Repo repo = new CustomerContent_Repo(); repo.AddContentToDirectory(content); List <CustomerContent> contents = repo.GetContents(); bool directoryHasContent = contents.Contains(content); Assert.IsTrue(directoryHasContent); }