public void CreateReview() { Review review = new Review(); Product product = productDB.Get("productID", 1.ToString()); review.Text = "Testing 123 testing"; Review r = reviewDB.CreateReview(review, product.ID, user.ID); Assert.AreEqual(r.ErrorMessage, ""); }
public Review CreateReview(string text, int productID, int userID) { Review review = new Review(text); return(reviewDB.CreateReview(review, productID, userID)); }