public void ShouldReturnProductList() { List<Product> result = null; ProductListRepository repo = new ProductListRepository(); result = repo.GetAll(); Assert.IsTrue(result != null && result.Count > 0); }
public void ShouldReturnProductWithEan() { Product result = null; ProductListRepository repo = new ProductListRepository(); result = repo.GetByEan13(""); Assert.IsTrue(result == null); }
public void ShouldReturnProduct() { Product result = null; IProductRepository repo = new ProductListRepository(); result = repo.GetById(1); Assert.IsTrue(result != null && result is Product); }