示例#1
0
文件: VenueTest.cs 项目: amigobv/UFO
        public void FindVenueWhereSpecatorsTest()
        {
            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.FindWhereSpectators(50);
            Assert.NotNull(venues);
            Assert.Equal(2, venues.Count);
        }