|
|
|
@ -39,8 +39,8 @@ namespace Volo.Blogging |
|
|
|
public async Task BuildAsync() |
|
|
|
{ |
|
|
|
await _blogRepository.InsertAsync(new Blog(_testData.Blog1Id, "The First Blog", "blog-1")); |
|
|
|
await _postRepository.InsertAsync(new Post(_testData.Blog1Post1Id, _testData.Blog1Id, Guid.Empty, "title", "coverImage", "url")); |
|
|
|
await _postRepository.InsertAsync(new Post(_testData.Blog1Post2Id, _testData.Blog1Id, Guid.Empty, "title", "coverImage", "url")); |
|
|
|
await _postRepository.InsertAsync(new Post(_testData.Blog1Post1Id, _testData.Blog1Id, "title", "coverImage", "url")); |
|
|
|
await _postRepository.InsertAsync(new Post(_testData.Blog1Post2Id, _testData.Blog1Id, "title", "coverImage", "url")); |
|
|
|
await _commentRepository.InsertAsync(new Comment(_testData.Blog1Post1Comment1Id,_testData.Blog1Post1Id,null,"text")); |
|
|
|
await _tagRepository.InsertAsync(new Tag(_testData.Blog1Id, _testData.Tag1Name)); |
|
|
|
} |
|
|
|
|