public void GetTotalStandardCostByCategoryTest() { ProductCategory pc = new ProductCategory { Name = "Bikes" }; Assert.AreEqual(92092.8230m, MethodSyntaxMethods.GetTotalStandardCostByCategory(pc)); }
public void GetProductByNameTest() { List <Product> result = MethodSyntaxMethods.GetProductsByName("Chain"); Assert.AreEqual(5, result.Count); foreach (Product res in result) { Assert.IsTrue(res.Name.Contains("Chain")); } }
public void GetNProductsFromCategoryTest() { List <Product> result = MethodSyntaxMethods.GetNProductsFromCategory("Bikes", 5); Assert.AreEqual(5, result.Count); }
public void GetNRecentlyReviewdProductdTest() { List <Product> result = MethodSyntaxMethods.GetNRecentlyReviewedProductd(3); Assert.AreEqual(3, result.Count); }
public void GetProductsWithRecentReviewsTest() { List <Product> result = MethodSyntaxMethods.GetProductsWithRecentReviews(3); Assert.AreEqual(3, result.Count); }
public void GetProduvtVendorByProductNameTest() { string result = MethodSyntaxMethods.GetProductVendorByProductName("Chain"); Assert.AreEqual("Varsity Sport Co.", result); }
public void GetProductNameByVendorNameTest() { List <string> result = MethodSyntaxMethods.GetProtuctNamesByVendorName("International"); Assert.AreEqual(1, result.Count); }