public void TestRetrieveAll() { ProductSQLDB db = new ProductSQLDB(dataSource); List <ProductProps> propsList = (List <ProductProps>)db.RetrieveAll(db.GetType()); Assert.AreEqual(16, propsList.Count); }
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); }