Esempio n. 1
0
        public void OutingRepo_AddOuting_ShouldAddAOutingList1()
        {
            Outing e1 = new Outing("Golf", 1, DateTime.Now, 8.00, 120.00);

            _OutingRepo.AddOuting(e1);

            var actual   = _OutingRepo.GetOutingList().Count;
            var expected = 1;

            Assert.AreEqual(expected, actual);
        }
Esempio n. 2
0
        public void AddToListTest()
        {
            OutingRepo           outingRepo = new OutingRepo();
            List <OutingContent> outingList = outingRepo.GetOutingList();

            OutingContent content = new OutingContent(OutingType.Concert, 10, DateTime.Today, 10m);

            int expected = 1;

            outingRepo.AddToList(content);

            Assert.AreEqual(expected, outingList.Count);
        }
Esempio n. 3
0
        public void SeeAllOutings()
        {
            List <OutingContent> outingList = _outingRepo.GetOutingList();

            foreach (OutingContent content in outingList)
            {
                Console.WriteLine($"\nOuting Type: {content.Type}\n" +
                                  $"People Attended: {content.PeopleAttended}\n" +
                                  $"Date: {content.Date}\n" +
                                  $"Cost Per Person: {content.CostPerPerson}\n" +
                                  $"Cost For Event: {content.CostForEvent}\n");
            }
            Console.WriteLine("Please hit any key to continue... ");
            Console.ReadKey();
        }