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);
    }
示例#2
0
 public virtual Task PublishAsync(Guid id)
 {
     return(BlogPostAdminAppService.PublishAsync(id));
 }