public StubTypeItem Get <T>(T instance) where T : class { string cacheKey = _cacheKeyGenerator.GenerateKey <T>(); Cache.TryGetValue(cacheKey, out StubTypeItem result); return(result); }
public PropertyInfo[] Get <T>(T instance) where T : class { string cacheKey = _cacheKeyGenerator.GenerateKey <T>(); _cache.TryGetValue(cacheKey, out PropertyInfo[] result); return(result); }
public void Should_Generate_Cache_Key() { var cacheKey = _cacheKeyGenerator.GenerateKey <PersonDto>(); Assert.NotEmpty(cacheKey); }
public void CacheKeyGeneratorTest() { var cacheKey = _cacheKeyGenerator.GenerateKey <PersonDto>(); Assert.NotEmpty(cacheKey); }