public void OutingRepo_AddToList_ShouldAddToList()
        {
            //--Arrange
            Outing outingList = new Outing();

            outingRepo.AddToList(outingList);
            List <Outing> menuListTest = outingRepo.GetList();
            //--Act
            int actual   = menuListTest.Count;
            int expected = 1;

            //--Assert
            Assert.AreEqual(expected, actual);
        }
Exemple #2
0
        private void AddOutingTest()
        {
            int expected = 8;
            int actual   = _outingRepo.GetList().Count;

            Assert.AreEqual(expected, actual);
        }
Exemple #3
0
        public void ViewAllOutings()
        {
            Console.Clear();
            List <Outing> fullList = _outingRepo.GetList();

            foreach (Outing outing in fullList)
            {
                DateTime outingDate = outing.OutingDate;
                string   dateFormat = outingDate.ToString("MM/dd/yyyy");
                Console.WriteLine($"{dateFormat} {outing.OutingType} Attendance:{outing.OutingAttendance} Total cost:${outing.TotalOutingCost}");
            }
        }
Exemple #4
0
        public void AddOuting()
        {
            //arrange
            Outing Styx = new Outing(EventType.Concert, 80, new DateTime(2019, 11, 27), 50, 4000);

            //act
            _repo.AddNewOuting(Styx);
            int count = _repo.GetList().Count;

            //assert
            Assert.AreEqual(1, count);
        }