|
|
|
@ -1,4 +1,5 @@ |
|
|
|
using System.Threading.Tasks; |
|
|
|
using System; |
|
|
|
using System.Threading.Tasks; |
|
|
|
using Shouldly; |
|
|
|
using Volo.Abp.Modularity; |
|
|
|
using Volo.Docs.Documents; |
|
|
|
@ -34,5 +35,13 @@ namespace Volo.Docs |
|
|
|
|
|
|
|
(await DocumentRepository.GetListAsync()).ShouldBeEmpty(); |
|
|
|
} |
|
|
|
|
|
|
|
[Fact] |
|
|
|
public async Task ClearCachesAsync() |
|
|
|
{ |
|
|
|
await DocumentRepository.ClearCachesAsync(DocsTestData.ProjectId); |
|
|
|
var documentsAfterClear = await DocumentRepository.GetListByProjectId(DocsTestData.ProjectId); |
|
|
|
documentsAfterClear.ForEach(d => d.LastCachedTime.ShouldBe(DateTime.MinValue)); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|