Example #1
0
        public RedisCache(ISerializer serializer, IRedisWrapper redisWrapper = null)
        {
            GuardHelper.ArgumentNotNull(() => serializer);
            if (redisWrapper == null)
            {
                redisWrapper = RedisFactory.GetRedisWrapper();
            }

            this.serializer   = serializer;
            this.redisWrapper = redisWrapper;
        }
Example #2
0
 public RedisWrapperTest()
 {
     this.redisWrapper = RedisFactory.GetRedisWrapper();
 }
Example #3
0
 public LockTest(ITestOutputHelper testOutput)
 {
     ServiceLocator.SetLocatorProvider(UnityConfig.GetConfiguredContainer());
     this.redisWrapper = RedisFactory.GetRedisWrapper();
     this.testOutput   = testOutput;
 }