Пример #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)}");
            }
        }
Пример #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);
        }
Пример #3
0
 public void TotalCost()
 {
     Console.WriteLine($"Annual Cost for All Outings: ${_outingRepo.TotalCost()}");
 }