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

            Assert.True(sut.HasFeaturedCampaign);
        }
Ejemplo n.º 2
0
        public void HasFeaturedCampaignShouldReturnFalseIfViewModelHasNoFeaturedCampaign()
        {
            var sut = new HomePageViewModel();

            Assert.False(sut.HasFeaturedCampaign);
        }