예제 #1
0
        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);
            }
        }
예제 #2
0
        //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);
        }