public async Task GivenNavigateToArticleReturnsArticleView() { const string articleSlug = "physical-activity"; var article = new ProcessedArticle("Physical Activity", "physical-activity", "Being active is great for your body", "teaser", "meta description", new List <ProcessedSection>() { DummySection() }, "fa-icon", "af981b9771822643da7a03a9ae95886f/runners.jpg", "af981b9771822643da7a03a9ae95886f/runners.jpg", new List <Crumb>() { new Crumb("title", "slug", "type") }, new List <Alert>(), new NullTopic(), new List <Alert>(), null, new DateTime(), new bool()); _articleRepository.Setup(o => o.Get(It.IsAny <string>(), It.IsAny <string>(), It.IsAny <string>(), It.IsAny <string>())).ReturnsAsync(new HttpResponse(200, article, string.Empty)); var articlePage = await _controller.Article(articleSlug, DefaultMessage, string.Empty, string.Empty) as ViewResult;; var viewModel = articlePage.ViewData.Model as ArticleViewModel; viewModel.Article.Title.Should().Contain("Physical Activity"); viewModel.Article.NavigationLink.Should().Be("/physical-activity"); viewModel.Article.Body.Should().Contain("Being active is great for your body"); viewModel.Article.BackgroundImage.Should().Contain("af981b9771822643da7a03a9ae95886f/runners.jpg"); viewModel.Article.Image.Should().Contain("af981b9771822643da7a03a9ae95886f/runners.jpg"); viewModel.Article.Icon.Should().Contain("fa-icon"); viewModel.Article.Sections.Count().Should().Be(1); }