Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }