Esempio n. 1
0
        public async Task GetBySlugAsync_ShouldWorkProperly_WithExistingSlug()
        {
            var blogPost = await blogPostAdminAppService.GetBySlugAsync(cmsKitTestData.BlogSlug, cmsKitTestData.BlogPost_1_Slug);

            blogPost.Id.ShouldBe(cmsKitTestData.BlogPost_1_Id);
            blogPost.Title.ShouldBe(cmsKitTestData.BlogPost_1_Title);
        }
Esempio n. 2
0
 public virtual Task <BlogPostDto> GetBySlugAsync(string blogSlug, string blogPostSlug)
 {
     return(BlogPostAdminAppService.GetBySlugAsync(blogSlug, blogPostSlug));
 }