public void VenueNames() { Console.WriteLine("Which venue would you like to view?"); IList <Venue> venues = venueDAL.GetVenues(); foreach (Venue venue in venues) { Console.WriteLine(venue.Id + ") " + venue.Name); } }
//Test GetVenues() public void TestGetVenues() { VenueDAL newVenue = new VenueDAL(connectionString); IList <Venue> venueList = newVenue.GetVenues(); bool found = false; foreach (Venue venue in venueList) { if (venue.Name == "TestVenue") { found = true; break; } } Assert.IsTrue(found); }