public void Setup() { var lockObjectGenerator = CreateLockObjectGenerator(); CacheBuilder = new CacheBuilder(ProxyFactory) .SetCache(CreateCache()) .SetCacheKey(CreateCacheKey()); if (lockObjectGenerator != null) { CacheBuilder.SetLockObjectGenerator(lockObjectGenerator); } TestSetup(); }