private void ShowAllContent() { Console.Clear(); List <MenuContent> listOfContent = _menuRepo.GetContents(); //Display every items contents foreach (MenuContent content in listOfContent) { DisplaySimple(content); } Console.WriteLine("Press Any Key to Continue"); Console.ReadLine(); }
public void GetDirectory_ShouldReturnCorrectCollection() { //Arrange, Act Assert MenuContent newObject = new MenuContent(); MenuContentRepository repo = new MenuContentRepository(); repo.AddContentToDirectory(newObject); List <MenuContent> listOfContents = repo.GetContents(); bool directoryHasContent = listOfContents.Contains(newObject); Assert.IsTrue(directoryHasContent); }