public void CurrentDaysShouldNotExceedTotalDays() { DateTime mockDateTime = new DateTime(2025, 4, 18, 14, 30, 25); _dateTimeWrapper.Setup(m => m.Now).Returns(mockDateTime); PledgeCampaignSummaryDto result = _fixture.GetSummary(_pledgeCampaignId); Assert.AreEqual(1143, result.CurrentDays); Assert.AreEqual(1143, result.TotalDays); }
public void ShouldGetSummaryForCampaignInProgess() { DateTime mockDateTime = new DateTime(2017, 4, 18, 14, 30, 25); _dateTimeWrapper.Setup(m => m.Now).Returns(mockDateTime); PledgeCampaignSummaryDto result = _fixture.GetSummary(_pledgeCampaignId); Assert.AreEqual(_pledgeCampaignId, result.PledgeCampaignId); Assert.AreEqual(38000000.00M + 1200000.00M, result.TotalGiven); Assert.AreEqual(95000000.00M, result.TotalCommitted); Assert.AreEqual(521, result.CurrentDays); Assert.AreEqual(1143, result.TotalDays); }