public void TestPosts() { posts = new List <SocialPost>(); comments = new List <Comment>(); Comment Comment = new Comment { Name = "Peeter Sipelgas", Message = "Tra kui pede sa oled", Likes = 2 }; comments.Add(Comment); Comment = new Comment { Name = "Karupoeg", Message = "Ei kannata", Likes = 228 }; comments.Add(Comment); Comment = new Comment { Name = "Bemmi vend", Message = "Tahax autot", Likes = 0 }; comments.Add(Comment); SocialPost post = new SocialPost { Name = "Test1", Message = "See sonum on tekkinud siia ns", Likes = 0, Date = DateTimeOffset.FromUnixTimeSeconds(1541056855), Comments = comments }; posts.Add(post); comments = new List <Comment>(); Comment = new Comment { Name = "Test1. 2post", Message = "Test", Likes = 3 }; comments.Add(Comment); Comment = new Comment { Name = "Test2. 2post", Message = "Test", Likes = 5 }; comments.Add(Comment); Comment = new Comment { Name = "Test3. 2post", Message = "Test", Likes = 9 }; comments.Add(Comment); post = new SocialPost { Name = "Test2", Message = "Testing message", Likes = 0, Date = DateTimeOffset.FromUnixTimeSeconds(1500056855), Comments = comments, Pic = Resource.Drawable.haters }; posts.Add(post); comments = new List <Comment>(); Comment = new Comment { Name = "Test1. 3post", Message = "Test", Likes = 10 }; comments.Add(Comment); Comment = new Comment { Name = "Test2. 3post", Message = "Test", Likes = 20 }; comments.Add(Comment); Comment = new Comment { Name = "Test3. 3post", Message = "Test", Likes = 30 }; comments.Add(Comment); post = new SocialPost { Name = "Test3", Message = "Message to test FACEBOOK", Likes = 0, Date = DateTimeOffset.FromUnixTimeSeconds(1305056855), Comments = comments }; posts.Add(post); comments = new List <Comment>(); Comment = new Comment { Name = "Test1. 4post", Message = "Test", Likes = 10 }; comments.Add(Comment); Comment = new Comment { Name = "Test2. 4post", Message = "Test", Likes = 10 }; comments.Add(Comment); Comment = new Comment { Name = "Test3. 4post", Message = "Test", Likes = 10 }; comments.Add(Comment); post = new SocialPost { Name = "Test4", Message = "See sonum on tekkinud siia ns", Likes = 0, Date = DateTimeOffset.FromUnixTimeSeconds(1205056005), Comments = comments, Pic = Resource.Drawable.Random }; posts.Add(post); }
public void TestPosts() { posts = new List <SocialPost>(); comments = new List <Comment>(); Comment Comment = new Comment { Name = "proov", Message = "asd", Likes = 0 }; comments.Add(Comment); SocialPost post = new SocialPost { Name = "Test1", Message = "Ssdg", Likes = 0, Date = DateTimeOffset.FromUnixTimeSeconds(1541056855), Comments = comments }; posts.Add(post); comments = new List <Comment>(); Comment = new Comment { Name = "Test1. 2post", Message = "Test", Likes = 3 }; comments.Add(Comment); Comment = new Comment { Name = "Test2. 2post", Message = "Test", Likes = 5 }; comments.Add(Comment); Comment = new Comment { Name = "Test3. 2post", Message = "Test", Likes = 9 }; comments.Add(Comment); post = new SocialPost { Name = "Test2", Message = "Testing message", Likes = 0, Date = DateTimeOffset.FromUnixTimeSeconds(1500056855), Comments = comments, ContainsPic = true, Pic = Resource.Drawable.download }; posts.Add(post); comments = new List <Comment>(); Comment = new Comment { Name = "Test1. 3post", Message = "Test", Likes = 10 }; comments.Add(Comment); Comment = new Comment { Name = "Test2. 3post", Message = "Test", Likes = 20 }; comments.Add(Comment); Comment = new Comment { Name = "Test3. 3post", Message = "Test", Likes = 30 }; comments.Add(Comment); post = new SocialPost { Name = "Test3", Message = "Message to test", Likes = 0, Date = DateTimeOffset.FromUnixTimeSeconds(1305056855), Comments = comments }; posts.Add(post); comments = new List <Comment>(); Comment = new Comment { Name = "Test1. 4post", Message = "Test", Likes = 10 }; comments.Add(Comment); Comment = new Comment { Name = "Test3. 4post", Message = "Test", Likes = 10 }; comments.Add(Comment); }