private void GetListOutings() { Console.Clear(); Console.WriteLine($"{ "Event Type"}\t{"Attendance"}\t{"Date"}\t{"Cost/Person"}\t{"Cost/Event"}"); List <Outing> outings = _repo.GetListOfOutings(); foreach (var item in outings) { DisplayOutings(item); Console.WriteLine("---------------------------------------------------------"); } Console.WriteLine("Press any key to continue"); Console.ReadKey(); }
public void GetListTest() { //Arrange Outing oneEvent = new Outing(); _repo.AddToList(oneEvent); //Act List <Outing> returnList = _repo.GetListOfOutings(); bool hasItem = returnList.Contains(oneEvent); //Assert Assert.IsTrue(hasItem); }