Ejemplo n.º 1
0
        private void ShowAllContent()
        {
            Console.Clear();

            List <StreamingContent> listOfContent = _repo.GetContents();

            foreach (StreamingContent content in listOfContent)
            {
                DisplayContent(content);
                // Console.WriteLine($"{content.Title} {content.Description}");
            }
            Console.ReadKey();
        }
Ejemplo n.º 2
0
        private void ShowAllContent()
        {
            Console.Clear();
            List <StreamingContent> listOfContent = _repo.GetContents();

            foreach (StreamingContent content in listOfContent)
            {
                /*Console.WriteLine($"Title: { content.Title}");
                 * Console.WriteLine($"Description: {content.Description}");
                 * Console.WriteLine($"Star Rating: {content.StarRating}");
                 * Console.WriteLine($"Genre: {content.Genre}");
                 * Console.WriteLine($"Maturity Rating: {content.MaturityRating}");
                 * Console.WriteLine($"Family Friendly: {content.IsFamilyFriendly}");
                 */
                DisplayContent(content);
                Console.WriteLine();
            }
            Console.WriteLine("Press any key to continue.");
            Console.ReadKey();
        }
Ejemplo n.º 3
0
        private void ShowAllContent()
        {
            _console.Clear();
            List <StreamingContent> listOfContent = _repo.GetContents();

            foreach (StreamingContent content in listOfContent)
            {
                DisplayContent(content);
            }
            _console.WriteLine("Press any key to continue");
            _console.ReadKey();
        }
        public void GetDirectory_ShouldReturnCorrectCollection()
        {
            //Arrange
            StreamingContent      content = new StreamingContent();
            StreamingContent_Repo repo    = new StreamingContent_Repo();

            repo.AddContentToDirectory(content);
            //Act
            List <StreamingContent> contents = repo.GetContents();

            bool directoryHasContent = contents.Contains(content);//checking if contents contains the contents from the directory

            //Assert
            Assert.IsTrue(directoryHasContent);
        }