Ejemplo n.º 1
0
        public void TestRetrieveAll()
        {
            ProductSQLDB        db        = new ProductSQLDB(dataSource);
            List <ProductProps> propsList = (List <ProductProps>)db.RetrieveAll(db.GetType());

            Assert.AreEqual(16, propsList.Count);
        }
Ejemplo n.º 2
0
        public void TestRetrieveAll()
        {
            ProductSQLDB db = new ProductSQLDB(dataSource);
            // create and fill list of ProductProps
            List <ProductProps> cProps = (List <ProductProps>)db.RetrieveAll(db.GetType());

            // cProps count should be equal to 16 (length of MMABooksUpdated Products table)
            Assert.AreEqual(16, cProps.Count);
        }