Beispiel #1
0
        public void ShouldReturnCampaignSummary()
        {
            _campaignServiceMock.Setup(m => m.GetSummary(_pledgeCampaignId)).Returns(new PledgeCampaignSummaryDto());

            var result = _fixture.GetSummary(_pledgeCampaignId);

            Assert.IsInstanceOf <OkNegotiatedContentResult <PledgeCampaignSummaryDto> >(result);
            var contentResult = (OkNegotiatedContentResult <PledgeCampaignSummaryDto>)result;

            Assert.IsNotNull(contentResult.Content);

            _campaignServiceMock.VerifyAll();
        }