Ejemplo n.º 1
0
        //Case 2
        public void TotalCost()
        {
            List <Outing> outingList = new List <Outing>();

            var listOfEnums = Enum.GetValues(typeof(TypeOfEvent));

            foreach (TypeOfEvent eventType in listOfEnums)
            {
                outingList = _outingRepo.ListByType(eventType);
                Console.WriteLine($"The cost of this event was {_outingRepo.TotalCost(outingList)}");
            }
        }
Ejemplo n.º 2
0
        public void TotalCost()
        {
            //arrange
            _repo.Seed();
            Outing Bowling = new Outing(EventType.Bowling, 10, new DateTime(2019, 06, 06), 10d, 100d);

            //act
            _repo.AddNewOuting(Bowling);

            double outingTotal = _repo.TotalCost();

            //assert
            Assert.AreEqual(4600d, outingTotal);
        }
Ejemplo n.º 3
0
 public void TotalCost()
 {
     Console.WriteLine($"Annual Cost for All Outings: ${_outingRepo.TotalCost()}");
 }