|
|
@ -1,9 +1,6 @@ |
|
|
using Shouldly; |
|
|
using System.Linq; |
|
|
using System; |
|
|
|
|
|
using System.Collections.Generic; |
|
|
|
|
|
using System.Linq; |
|
|
|
|
|
using System.Text; |
|
|
|
|
|
using System.Threading.Tasks; |
|
|
using System.Threading.Tasks; |
|
|
|
|
|
using Shouldly; |
|
|
using Volo.Abp.Modularity; |
|
|
using Volo.Abp.Modularity; |
|
|
using Xunit; |
|
|
using Xunit; |
|
|
|
|
|
|
|
|
@ -34,4 +31,15 @@ public abstract class EntityTagRepository_Test<TStartupModule> : CmsKitTestBase< |
|
|
|
|
|
|
|
|
relatedTags.ShouldBeEmpty(); |
|
|
relatedTags.ShouldBeEmpty(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[Fact] |
|
|
|
|
|
public async Task GetEntityIdsFilteredByTagNameAsync_ShouldWorkProperly() |
|
|
|
|
|
{ |
|
|
|
|
|
var entityIds = await _entityTagRepository.GetEntityIdsFilteredByTagNameAsync(_cmsKitTestData.TagName_1, _cmsKitTestData.EntityType1); |
|
|
|
|
|
|
|
|
|
|
|
entityIds.ShouldNotBeNull(); |
|
|
|
|
|
entityIds.ShouldNotBeEmpty(); |
|
|
|
|
|
|
|
|
|
|
|
entityIds.Count.ShouldBe(1); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|