/*private void ShowAllMovies() * { * Console.Clear(); * //Get the items from our fake database * List<StreamingContent> listOfContent = _movieRepo.GetContents(); * //Take Each item and display property values * foreach (Movie content in listOfContent) * { * DisplaySimple(content); * } * //Puase the program so the user can see the printed objects * Console.WriteLine("Press any key to continue"); * Console.ReadKey(); * Console.Clear(); * //GOAL: Show all items in our fake database * }*/ private void ShowAllMovies() { Console.Clear(); //Get the items from our fake database List <Movie> listOfContent = _streamingRepo.GetAllMovies(); //Take Each item and display property values foreach (var content in listOfContent) { DisplaySimple(content); } //Puase the program so the user can see the printed objects Console.WriteLine("Press any key to continue"); Console.ReadKey(); Console.Clear(); //GOAL: Show all items in our fake database }
private void ShowAllMovies() { _console.Clear(); List <Movie> listofMovie = _streamingRepo.GetAllMovies(); foreach (Movie movie in listofMovie) { DisplaySimple(movie); } _console.WriteLine("Press any key to continue..............."); _console.ReadKey(); }
private void ShowAllMovies() { _console.Clear(); //Get all the movies List <Movie> listOfMovies = _streamingRepo.GetAllMovies(); foreach (var oneMovie in listOfMovies) { DisplaySimple(oneMovie); } _console.WriteLine("Press any key to continue..."); _console.ReadKey(); }
private void ShowAllMovies() { List <Movie> movies = new List <Movie>(); movies = _streamingRepo.GetAllMovies(); foreach (Movie content in movies) { Console.WriteLine($"Title: {content.Title}\n" + $"Genre: {content.Genre}\n" + $"Stars: {content.StarRating}\n" + $"Description: {content.Description}\n" + $"Language: {content.TypeOfLanguage}\n" + $"Maturity Rating: {content.TypeOfMaturityRating}\n" + $"Quality: {content.TypeOfStreamingQualityType}\n" + $"Family Friendly? {content.IsFamilyFriendly}\n" + $"Run Time: {content.RunTime}\n"); } Console.WriteLine("Press any key to continue..."); Console.ReadKey(); }
private void ShowAllMovies() { _console.Clear(); List <Movie> movies = new List <Movie>(); movies = _streamingRepository.GetAllMovies(); foreach (Movie content in movies) { _console.WriteLine($"Title: {content.Title}\n" + $"Genre: {content.Genre}\n" + $"Description: {content.Description}\n" + $"Star Rating: {content.StarRating}\n" + $"Maturity Rating: {content.MaturityRating}\n" + $"Language: {content.Language}\n" + $"Type Of Streaming Quality: {content.TypeOfStreamingQuality}\n" + $"Is Family Friendly: {content.IsFamilyFriendly}\n" + $"Run Time: {content.RunTime} minutes\n"); } _console.WriteLine("Press any key to continue."); _console.ReadKey(); }
private void DisplayAllMovies() { Console.Clear(); List <Movie> directory = _streamingRepo.GetAllMovies(); //go through each item of our content and display its properties foreach (Movie movie in directory) { Console.WriteLine($"Title: {movie.Title}\n" + $"Description: {movie.Description}\n" + $"Stars: {movie.StarRating}\n" + $"Genre: {movie.Genre}\n" + $"Language: {movie.Language}\n" + $"Quality: {movie.TypeOfStreamingQuality}\n" + $"Maturity: {movie.MaturityRating}\n" + $"Family Friendly: {movie.IsFamilyFriendly}\n" + $"Run Time (minutes): {movie.RunTime}\n" + $""); } Console.WriteLine("Press any key to continue"); Console.ReadKey(); }