예제 #1
0
파일: VenueTest.cs 프로젝트: amigobv/UFO
        public void FindVenueByLocationTest()
        {
            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.FindByLocation(LOCATION);
            Assert.NotNull(venues);
            Assert.Equal(items.Count, venues.Count);
        }