Beispiel #1
0
        public void Test_DisplayList()
        {
            SeedOutingsList();
            List <OutingsContent> testList = _testRepo.DisplayList();
            int result   = testList.Count;
            int expected = 8;

            Assert.AreEqual(expected, result);
        }
Beispiel #2
0
        public void SeeOutingsList()
        {
            Console.Clear();
            List <OutingsContent> listOfOutings = _outingsRepo.DisplayList();

            Console.WriteLine("TotalCostPerPerson      Attendees      EventDate                    TotalCostPerson        EventType    ");
            foreach (OutingsContent outings in listOfOutings)
            {
                Console.WriteLine($"${outings.TotalCostPerson}                         {outings.Attendees}       {outings.EventDate}              ${outings.TotalCostPerson}                {outings.EventType}");
            }
            Console.WriteLine("Press any key to continue");
            Console.ReadLine();
            Console.Clear();
        }