Ejemplo n.º 1
0
        public void FindVenueByLocationIdTest()
        {
            if (database == null)
            {
                database = new Database(TestUtils.ConnString);
            }
            Assert.NotNull(database);

            var venueDao = new VenueDao(database);
            InsertDummyData(venueDao);
            Assert.Equal(items.Count, venueDao.Count());

            var currVenue = items[0];

            var venues = venueDao.FindByLocationId(LOCATION_ID);
            Assert.NotNull(venues);
            Assert.Equal(items.Count, venues.Count);
        }