|
@@ -76,15 +76,14 @@ public class KnowApplicationTest
|
|
|
[Fact]
|
|
|
public async Task UpdateKnowledgeWord_Test()
|
|
|
{
|
|
|
-
|
|
|
var entity = await _knowledgeHotWordRepository.Queryable()
|
|
|
.OrderByDescending(m => m.CreationTime)
|
|
|
.FirstAsync();
|
|
|
entity.KeyWord = "单元测试修改";
|
|
|
var inDto = entity.Adapt<UpdateKnowledgeHotWordInDto>();
|
|
|
await _knowApplication.UpdateKnowledgeHotWordAsync(inDto);
|
|
|
- var updateEntity = await _knowledgeWordRepository.GetAsync(entity.Id);
|
|
|
- updateEntity.Tag.ShouldBe(entity.KeyWord);
|
|
|
+ var updateEntity = await _knowledgeHotWordRepository.GetAsync(entity.Id);
|
|
|
+ updateEntity.KeyWord.ShouldBe(entity.KeyWord);
|
|
|
}
|
|
|
|
|
|
[Fact]
|