示例#1
0
        public ActionResult PastDonations()
        {
            ViewBag.Title = "PastDonations";
            var donations = _donationManager.RetrieveAllDonationsFromPastYear();

            return(View(donations));
        }
示例#2
0
        public void TestRetrieveAllDonationsFromPastYear()
        {
            // Arrange
            List <Donation> donations = new List <Donation>();

            // Act
            donations = _donationManager.RetrieveAllDonationsFromPastYear();

            // Assert
            Assert.AreEqual(donations.Count, 3);
        }