public void TestFindAll()
        {
            IDatabase     db       = DALFactory.CreateDatabase();
            IVenueDao     dao      = DALFactory.CreateVenueDao(db);
            IList <Venue> entities = dao.findAll();

            Assert.AreEqual(entities.Count, 2);
        }
        public void TestInsert()
        {
            IDatabase db  = DALFactory.CreateDatabase();
            IVenueDao dao = DALFactory.CreateVenueDao(db);
            Venue     v   = new Venue();

            v.Description      = "UNIT-TEST";
            v.Latitude         = 2;
            v.Longitude        = 2;
            v.ShortDescription = "NO";
            v.Address          = "TestAddress";

            dao.Insert(v);

            Assert.AreEqual(dao.findAll().Count, 3);
        }
Esempio n. 3
0
        public IList <Venue> QueryVenues()
        {
            IVenueDao dao = DALFactory.CreateVenueDao(database);

            return(dao.findAll());
        }