mirror of https://github.com/abpframework/abp.git
4 changed files with 31 additions and 6 deletions
@ -0,0 +1,16 @@ |
|||
using Shouldly; |
|||
using Xunit; |
|||
|
|||
namespace Volo.Abp.PermissionManagement |
|||
{ |
|||
public class PermissionGrantCacheItem_Tests |
|||
{ |
|||
[Fact] |
|||
public void GetPermissionNameFormCacheKeyOrNull() |
|||
{ |
|||
var key = PermissionGrantCacheItem.CalculateCacheKey("aaa", "bbb", "ccc"); |
|||
PermissionGrantCacheItem.GetPermissionNameFormCacheKeyOrNull(key).ShouldBe("aaa"); |
|||
PermissionGrantCacheItem.GetPermissionNameFormCacheKeyOrNull("aaabbbccc").ShouldBeNull(); |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue