Exemplo n.º 1
0
 private void DisplayOutingCostByEvent()
 {
     Console.Clear();
     Console.WriteLine($"Total cost for amusment parks: {_repo.TotalCostForEventType(EventType.AmusementPark)} ");
     Console.WriteLine($"Total cost for bowling: {_repo.TotalCostForEventType(EventType.Bowling)} ");
     Console.WriteLine($"Total cost for golf: {_repo.TotalCostForEventType(EventType.Golf)} ");
     Console.WriteLine($"Total cost for concert: {_repo.TotalCostForEventType(EventType.Concert)} ");
     Console.ReadKey();
 }
Exemplo n.º 2
0
        public void TotalCostForEventTest()
        {
            //ARRANGE
            SeedContentList();

            //ACT
            double costForAmusementParks = _repo.TotalCostForEventType(EventType.AmusementPark);

            //ASSERT
            Assert.AreEqual(3650.00, costForAmusementParks);
        }