public void UpdateExistingContent_ShouldReturnTrue()
        {
            // Arrange
            StreamingContent updatedContent = new StreamingContent("The Italian Job", "Still a Heist", 88, MaturityRate.PG_13, false, GenreType.Suspence);

            _repo.AddContenttoDirectory(_content);

            // ACT
            bool updateResult = _repo.UpdateExistingContnet("Ocean's Eight", updatedContent);

            // ASSERT
            Assert.IsTrue(updateResult);
        }
        public void AddToDirectory_ShouldGetCorrectBoolean()
        {
            // Arrange

            StreamingContent           content    = new StreamingContent();
            StreamingContentRepository repository = new StreamingContentRepository();

            // ACT

            bool addResult = repository.AddContenttoDirectory(content);

            // ASSERT

            Assert.IsTrue(addResult);
        }
        public void GetDirectory_ShouldReturnCorrectCollection()
        {
            // Arrange

            StreamingContent           newObject = new StreamingContent();
            StreamingContentRepository repo      = new StreamingContentRepository();

            repo.AddContenttoDirectory(newObject);

            //ACT

            List <StreamingContent> listOfContents = repo.GetContents();

            // ASSERT

            bool directoryHasContent = listOfContents.Contains(newObject);

            Assert.IsTrue(directoryHasContent);
        }
 public void Arrange()
 {
     _repo    = new StreamingContentRepository();
     _content = new StreamingContent("Ocean's Eight", "Heist", 88, MaturityRate.PG_13, true, GenreType.Comedy);
     _repo.AddContenttoDirectory(_content);
 }