示例#1
0
    public void GetSettingNameFormCacheKeyOrNull()
    {
        var key = SettingCacheItem.CalculateCacheKey("aaa", "bbb", "ccc");

        SettingCacheItem.GetSettingNameFormCacheKeyOrNull(key).ShouldBe("aaa");
        SettingCacheItem.GetSettingNameFormCacheKeyOrNull("aaabbbccc").ShouldBeNull();
    }
示例#2
0
 protected virtual string GetSettingNameFormCacheKeyOrNull(string key)
 {
     //TODO: throw ex when name is null?
     return(SettingCacheItem.GetSettingNameFormCacheKeyOrNull(key));
 }