예제 #1
0
        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, "");
        }
예제 #2
0
        public Review CreateReview(string text, int productID, int userID)
        {
            Review review = new Review(text);

            return(reviewDB.CreateReview(review, productID, userID));
        }