GetAllProfileComments() public méthode

public GetAllProfileComments ( ) : ISet
Résultat ISet
Exemple #1
0
 public void ShouldBeAbleToGetAllCommentsOnAProfile()
 {
     var user1 = new User(new LoginId("*****@*****.**"), new Name("firstName1", "lastName1"));
     user1.AddCommentToProfile(new Comment(user1, user1, "This is the first comment", new GetInDate(new DateTime(2010, 01, 01))));
     user1.AddCommentToProfile(new Comment(user1, user1, "This is the second comment", new GetInDate(new DateTime(2010, 02, 03))));
     user1.AddCommentToProfile(new Comment(user1, user1, "This is the third comment", new GetInDate(new DateTime(2010, 01, 02))));
     user1.AddCommentToProfile(new Comment(user1, user1, "This is the fourth comment", new GetInDate(new DateTime(2010, 04, 02))));
     Assert.AreEqual(4, user1.GetAllProfileComments().Count);
 }