public void GetNMyProductsFromCategoryTest() { MyProductsRepository repo = new MyProductsRepository(); List <MyProduct> result = repo.GetNMyProductsFromCategory("Bikes", 2); Assert.AreEqual(97, result.Count); }
public void GetNRecentlyReviewdMyProducts() { MyProductsRepository repo = new MyProductsRepository(); List <MyProduct> result = repo.GetNRecentlyReviewedProductd(3); Assert.AreEqual(3, result.Count); }
public void GetMyProductsByNameTest() { MyProductsRepository repo = new MyProductsRepository(); List <MyProduct> result = repo.GetMyProductsByName("Chain"); Assert.AreEqual(5, result.Count); foreach (MyProduct res in result) { Assert.IsTrue(res.Name.Contains("Chain")); } }