Example #1
0
        public void Acc_Products_CollectionLoad()
        {
            ProductCollection coll = new ProductCollection();

            using (IDataReader rdr = ReadOnlyRecord <Product> .FetchAll())
            {
                coll.Load(rdr);
                rdr.Close();
            }
            Assert.IsTrue(coll.Count > 0);
        }
Example #2
0
        public void Acc_Objects_DeletedTest()
        {
            IDataReader rdr = ReadOnlyRecord <Employee> .FetchAll();

            int count = 0;

            while (rdr.Read())
            {
                count++;
            }
            Assert.IsTrue(count == 8, "Nope, it's " + count);
        }