public void TotalCostAllOutings() { decimal total = _outingRepo.CombinedCostOfAllOutingsGet(); Console.WriteLine($"The total cost of all outings is: {total}"); Console.WriteLine("Please hit any key to continue... "); Console.ReadKey(); }
public void CombineCostAllTest() { OutingRepo outingRepo = new OutingRepo(); OutingContent content = new OutingContent(); content.CostForEvent = 100m; OutingContent contentOne = new OutingContent(); contentOne.CostForEvent = 100m; outingRepo.AddToList(content); outingRepo.AddToList(contentOne); decimal expected = 200m; decimal actual = outingRepo.CombinedCostOfAllOutingsGet(); Assert.AreEqual(expected, actual); }