|
|
|
@ -54,6 +54,15 @@ public abstract class CommentRepository_Tests<TStartupModule> : CmsKitTestBase<T
|
|
|
|
list.Any(x => x.Author == null).ShouldBeFalse();
|
|
|
|
list.Any(x => x.Author == null).ShouldBeFalse();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Fact]
|
|
|
|
|
|
|
|
public async Task GetWithAuthorAsync()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
var commentDetail = await _commentRepository.GetWithAuthorAsync(_cmsKitTestData.CommentWithChildId);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commentDetail.ShouldNotBeNull();
|
|
|
|
|
|
|
|
commentDetail.Author.ShouldNotBeNull();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Fact]
|
|
|
|
[Fact]
|
|
|
|
public async Task DeleteWithRepliesAsync()
|
|
|
|
public async Task DeleteWithRepliesAsync()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|