Browse Source

Add test to EntityTagRepositories

pull/13558/head
Enis Necipoglu 4 years ago
parent
commit
26d646ffcb
  1. 18
      modules/cms-kit/test/Volo.CmsKit.TestBase/Tags/EntityTagRepository_Test.cs

18
modules/cms-kit/test/Volo.CmsKit.TestBase/Tags/EntityTagRepository_Test.cs

@ -1,9 +1,6 @@
using Shouldly;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Linq;
using System.Threading.Tasks;
using Shouldly;
using Volo.Abp.Modularity;
using Xunit;
@ -34,4 +31,15 @@ public abstract class EntityTagRepository_Test<TStartupModule> : CmsKitTestBase<
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);
}
}

Loading…
Cancel
Save