public void Test_AddCostEvents() { //Arrange List <Outing> localList = repo.GetListOfOutings(); SeedOutings(); decimal testSum; decimal expectedSum; //Act expectedSum = 89.70m * 45 + 220.50m * 180 + 145.65m * 36; testSum = repo.AddCostEvents(); //Assert Assert.AreEqual(expectedSum, testSum); }
private void CombinedCostOutings() { decimal totalCostOfEvents = repo.AddCostEvents(); Console.WriteLine("The total cost of outings this year is: $" + totalCostOfEvents); }