예제 #1
0
        public void When_Getting_CampaignsWithProjectCounts_Returns_CampaignReport()
        {
            repoMock
            .Setup(r => r.GetCampaignsAndProjectCounts());

            campaignList.GetCampaignsWithProjectCounts();

            repoMock.Verify(r => r.GetCampaignsAndProjectCounts(), Times.Once);
        }
예제 #2
0
 public IActionResult Index()
 {
     return(View(campaignList.GetCampaignsWithProjectCounts()));
 }