Example #1
0
 public static IEnumerable<Comment> GenerateComments()
 {
     var comment1 = new Comment("Tom", "I love this post!");
     var replyToComment1 = new Comment("Jim", "Tom, I know right!");
     replyToComment1.Comments.Add(new Comment("John", "You guys are easily amused."));
     comment1.Comments.Add(replyToComment1);
     var comment2 = new Comment("Sam", "This post is lol.");
     comment2.Comments.Add(new Comment("Amy", "Sam your face is lol!"));
     return new[] { comment1, comment2 };
 }