Exemple #1
0
        public void ShouldReturnProductList()
        {
            List<Product> result = null;
            ProductListRepository repo = new ProductListRepository();
            result = repo.GetAll();

            Assert.IsTrue(result != null && result.Count > 0);
        }
Exemple #2
0
        public void ShouldReturnProductWithEan()
        {
            Product result = null;
            ProductListRepository repo = new ProductListRepository();
            result = repo.GetByEan13("");

            Assert.IsTrue(result == null);
        }
Exemple #3
0
        public void ShouldReturnProduct()
        {
            Product result = null;
            IProductRepository repo = new ProductListRepository();
            result = repo.GetById(1);

            Assert.IsTrue(result != null && result is Product);
        }