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

            campaignList.GetCampaignsWithProjectCounts();

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