public ActionResult PastDonations() { ViewBag.Title = "PastDonations"; var donations = _donationManager.RetrieveAllDonationsFromPastYear(); return(View(donations)); }
public void TestRetrieveAllDonationsFromPastYear() { // Arrange List <Donation> donations = new List <Donation>(); // Act donations = _donationManager.RetrieveAllDonationsFromPastYear(); // Assert Assert.AreEqual(donations.Count, 3); }