public UserInterface(string connectionString)
 {
     this.connectionString = connectionString;
     venueDAL       = new VenueDAL(connectionString);
     spaceDAL       = new SpaceDAL(connectionString);
     reservationDAL = new ReservationDAL(connectionString);
 }
Exemple #2
0
        //Test GetVenueCategories()
        public void TestGetVenueCategories()
        {
            VenueDAL         newVenue     = new VenueDAL(connectionString);
            IList <Category> categoryList = newVenue.GetVenueCategories();

            bool found = false;

            foreach (Category category in categoryList)
            {
                if (category.Name == "TestCategory")
                {
                    found = true;
                    break;
                }
            }


            Assert.IsTrue(found);
        }
Exemple #3
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);
        }