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