public async Task PublishAsync_ShouldWorkProperly() { var newPost = await CreateBlogPost(); newPost.Status.ShouldBe(BlogPostStatus.Draft); await blogPostAdminAppService.PublishAsync(newPost.Id); var post = await blogPostAdminAppService.GetAsync(newPost.Id); post.Status.ShouldBe(BlogPostStatus.Published); }
public virtual Task PublishAsync(Guid id) { return(BlogPostAdminAppService.PublishAsync(id)); }