private PostComment CreateComment(Post post) { return new PostComment { Id = Guid.NewGuid(), Post = post, Text = commentText, CreationDate = DateTime.Now }; }
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()); }