public void AddComment() { SqlCommentManager scm = new SqlCommentManager(); Comment c = new Comment(); c.UserId = 1; c.Content = "This is good!"; scm.Add(c); }
public void GetCommentsByRecipe() { SqlCommentManager scm = new SqlCommentManager(); SqlRecipeManager srm = new SqlRecipeManager(); Recipe r = new Recipe(); r = srm.GetRecipeById(1); List<Comment> cl = scm.GetCommentsByRecipe(r); Assert.AreEqual(1, cl.Count); }