public void HasFeaturedCampaignShouldReturnTrueIfViewMModelHasAFeaturedCampaign()
        {
            var sut = new HomePageViewModel
            {
                FeaturedCampaign = new CampaignSummaryViewModel { Id = 1, Title = "Something" }
            };

            Assert.True(sut.HasFeaturedCampaign);
        }
        public async Task<IActionResult> Index()
        {
            var model = new HomePageViewModel();

            //todo: per #691 the model may need to be updated as we 
            //      no longer require the list of campaigns
            model.Campaigns = mediator.Send(new CampaignQuery());
            model.FeaturedCampaign = await mediator.SendAsync(new FeaturedCampaignQueryAsync());

            return View(model);
        }
 public void HasFeaturedCampaignShouldReturnFalseIfViewModelHasNoFeaturedCampaign()
 {
     var sut = new HomePageViewModel();
     Assert.False(sut.HasFeaturedCampaign);
 }