Ejemplo n.º 1
0
        public void TestLoadAllUnusedField()
        {
            SqlTestStore <Bean> store = new SqlTestStore <Bean>("name");
            ICollection <Bean>  coll  = store.LoadAll(null, new QueryParameter(9));

            Assert.AreEqual(9, coll.Count);
        }
Ejemplo n.º 2
0
        public void TestLoadAll()
        {
            SqlTestStore <Bean> store = new SqlTestStore <Bean>("name");
            ICollection <Bean>  coll  = store.LoadAll(null, new QueryParameter(3));

            Assert.AreEqual(3, coll.Count);
            int index = 0;

            foreach (Bean bean in coll)
            {
                Assert.AreEqual(index, bean.Id);
                Assert.AreEqual(index.ToString(), bean.Name);
                index++;
            }
        }
Ejemplo n.º 3
0
 public void TestLoadAllTooManyRows()
 {
     SqlTestStore <Bean> store = new SqlTestStore <Bean>("name");
     ICollection <Bean>  coll  = store.LoadAll(null, new QueryParameter(15));
 }