Esempio n. 1
0
 public async Task OneTimeTearDown()
 {
     if (redis is object)
     {
         await redis.DisposeAsync();
     }
 }
        public async Task SetUp()
        {
            if (client is object)
            {
                await client.DisposeAsync();

                client = null;
            }
            client = new RedisClient(TestConfig.SingleHost).ForAsyncOnly();
            await client.FlushAllAsync();

            redis = client.As <T>();
        }
Esempio n. 3
0
        public async Task SetUp()
        {
            if (client is object)
            {
                await client.DisposeAsync();

                client = null;
            }
            client = new RedisClient(TestConfig.SingleHost);
            await client.FlushAllAsync();

            redis = client.As <T>();

            Hash = redis.GetHash <string>(HashId);
        }
        public async Task SetUp()
        {
            if (client is object)
            {
                await client.DisposeAsync();

                client = null;
            }
            client = new RedisClient(TestConfig.SingleHost);
            await client.FlushAllAsync();

            redis = client.As <CustomType>();

            List = redis.Lists[ListId];
            // List2 = redis.Lists[ListId2];
        }