//View All Events private void ViewAllOutings() { Console.Clear(); List <Outings> listOfOutings = _outingsRepo.ViewAllOutings(); foreach (Outings outings in listOfOutings) { Console.WriteLine ( $"Type: {outings.TypeOfEvent} \n" + $"Date: {outings.EventDate}\n" + $"Attendance: {outings.PeopleAttended}\n" + $"Cost Per Person: ${outings.CostPerPerson}\n" + $"Total Cost: ${outings.CostOfAllEvents}\n"); } }
public void ViewAllOutings_ShouldReturnCorrectBool() { //Arrange Outings newOuting = new Outings(); OutingsRepo repo = new OutingsRepo(); repo.CreateNewOuting(newOuting); //Act List <Outings> contents = repo.ViewAllOutings(); bool directoryHasContent = contents.Contains(newOuting); //Assert Assert.IsTrue(directoryHasContent); }