public UserInterface(string connectionString) { this.connectionString = connectionString; venueDAL = new VenueDAL(connectionString); spaceDAL = new SpaceDAL(connectionString); reservationDAL = new ReservationDAL(connectionString); }
//Test VenueSpaces() public void TestVenueSpaces() { SpaceDAL newSpace = new SpaceDAL(connectionString); //Space testSpace = new Space(99, 99, "TestSpace", false, 1, 12, 1000, 1000); IList <Space> spaceList = newSpace.VenueSpaces(); bool found = false; foreach (Space place in spaceList) { if (place.Name == "TestSpace") { found = true; break; } } Assert.IsTrue(found); }