Esempio n. 1
0
 private PostComment CreateComment(Post post)
 {
     return new PostComment
     {
         Id = Guid.NewGuid(),
         Post = post,
         Text = commentText,
         CreationDate = DateTime.Now
     };
 }
Esempio n. 2
0
 private void WaitUntilPostDeleted(Post post)
 {
     var repo = GetRepo();
     Helpers.WaitUntil(() => !repo.GetPosts().Any(x => x.Id == post.Id), MaxTimeoutSeconds);
 }
 public void DeletePost(Post post)
 {
     client.DeletePost(post.ToDto());
 }