public void TestDAOForProductGetBy()
 {
     IProductRepository product = new DummyDAOForProduct();
     CollectionAssert.AreEqual(new List<Product> { Storage.Products[1], Storage.Products[4] }, product.GetBy(null, null, Storage.Categories[1]));
     CollectionAssert.AreEqual(Storage.Products, product.GetBy(null, null, null));
     CollectionAssert.AreEqual(new List<Product> { Storage.Products[0], Storage.Products[3] }, product.GetBy(null, "Table", null));
 }
        public void TestDAOForProductGetBy()
        {
            IProductRepository product = new DummyDAOForProduct();

            CollectionAssert.AreEqual(new List <Product> {
                Storage.Products[1], Storage.Products[4]
            }, product.GetBy(null, null, Storage.Categories[1]));
            CollectionAssert.AreEqual(Storage.Products, product.GetBy(null, null, null));
            CollectionAssert.AreEqual(new List <Product> {
                Storage.Products[0], Storage.Products[3]
            }, product.GetBy(null, "Table", null));
        }
 public void TestDAOForProduct()
 {
     IProductRepository product = new DummyDAOForProduct();
     Assert.AreEqual(Storage.Products[1], product.GetBySKU("sfdfh3"));
 }
        public void TestDAOForProduct()
        {
            IProductRepository product = new DummyDAOForProduct();

            Assert.AreEqual(Storage.Products[1], product.GetBySKU("sfdfh3"));
        }