public void IndexTest()
        {
            PodcastController controller = new PodcastController(new PodcastRepository());

            ViewResult result = controller.Index() as ViewResult;

            Assert.IsNull(result);
        }
        public void ShouldGetIndex()
        {
            // Given
            var context           = new Context <PodcastController>();
            PodcastController sut = context.CreateSut();

            // When
            ViewResult result = sut.Index() as ViewResult;

            // Then
            result.Should().NotBeNull();
            result.Model.Should().BeOfType <PodcastViewModel>();
            PodcastViewModel model = (PodcastViewModel)result.Model;

            model.FeedUrl.Should().BeNull();
            model.Podcasts.Should().HaveCount(2);
        }