Browse Source

Fix mismatching parameter in TagRepository_Test

pull/6756/head
enisn 6 years ago
parent
commit
f192860fa3
  1. 4
      modules/cms-kit/test/Volo.CmsKit.TestBase/Tags/TagRepository_Test.cs

4
modules/cms-kit/test/Volo.CmsKit.TestBase/Tags/TagRepository_Test.cs

@ -86,7 +86,7 @@ namespace Volo.CmsKit.Tags
[Fact] [Fact]
public async Task Should_Get_Related_Tags() public async Task Should_Get_Related_Tags()
{ {
var content_1_tags = await _tagRepository.GetAllRelatedTagsAsync(_cmsKitTestData.Content_1_EntityType, _cmsKitTestData.Content_1_EntityType); var content_1_tags = await _tagRepository.GetAllRelatedTagsAsync(_cmsKitTestData.Content_1_EntityType, _cmsKitTestData.EntityId1);
content_1_tags.Count.ShouldBe(_cmsKitTestData.Content_1_Tags.Length); content_1_tags.Count.ShouldBe(_cmsKitTestData.Content_1_Tags.Length);
@ -95,7 +95,7 @@ namespace Volo.CmsKit.Tags
_cmsKitTestData.Content_1_Tags.Contains(tag.Name).ShouldBeTrue(); _cmsKitTestData.Content_1_Tags.Contains(tag.Name).ShouldBeTrue();
} }
var content_2_tags = await _tagRepository.GetAllRelatedTagsAsync(_cmsKitTestData.Content_2_EntityType, _cmsKitTestData.Content_2_EntityType); var content_2_tags = await _tagRepository.GetAllRelatedTagsAsync(_cmsKitTestData.Content_2_EntityType, _cmsKitTestData.EntityId2);
content_2_tags.Count.ShouldBe(_cmsKitTestData.Content_2_Tags.Length); content_2_tags.Count.ShouldBe(_cmsKitTestData.Content_2_Tags.Length);

Loading…
Cancel
Save