コード例 #1
0
 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));
 }
コード例 #2
0
        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));
        }
コード例 #3
0
 public void TestDAOForProduct()
 {
     IProductRepository product = new DummyDAOForProduct();
     Assert.AreEqual(Storage.Products[1], product.GetBySKU("sfdfh3"));
 }
コード例 #4
0
        public void TestDAOForProduct()
        {
            IProductRepository product = new DummyDAOForProduct();

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