public void TestGetTotalsFiltered() { // arrange // Done in Test Init //Act testOutingRepo.AddOuting(outingToAdd); testOutingRepo.AddOuting(outingToAdd2); testOutingRepo.AddOuting(outingToAdd3); // assert Assert.IsTrue(testOutingRepo.GetCostsTotal(Outing.EventType.Golf) == 2800.71); }
public void DisplayOutingCostsByEventType() { double costs = AllEvents.GetCostsTotal(InputEventTypeHelper("Enter the Event type you wish to see totaled")); Console.WriteLine("\nTotal costs for all events of this type were: $" + costs); }