Esempio n. 1
0
        public RedisExpiryManagerTests(TestFixture fixture)
        {
            _redisClient = fixture.ThrowIfNull(nameof(fixture)).RedisClient;
            _sut         = new RedisExpiryProvider(new CacheConfiguration(fixture.RedisConnectionManager));

            _setKey = _sut.SetKey;

            _fixture = fixture;
        }
        public ExpiryTests(TestFixture fixture)
        {
            _config = new CacheConfiguration(fixture.ThrowIfNull(nameof(fixture)).RedisConnectionManager);
            _sut    = new RedisCacheProvider(_config)
            {
                Logger = new TestRedisLogger()
            };

            _fixture = fixture;
        }
Esempio n. 3
0
 public RedisClientTests(TestFixture fixture)
 {
     _sut     = fixture.ThrowIfNull(nameof(fixture)).RedisClient;
     _fixture = fixture;
 }
 protected RedisCacheProviderTests(TestFixture fixture)
 {
     _redis   = fixture.ThrowIfNull(nameof(fixture)).RedisConnectionManager;
     _fixture = fixture;
 }