Beispiel #1
0
        public async Task CreateContextAsync()
        {
            using (var context = await RedisContext.CreateAsync("localhost"))
            {
                Assert.IsNotNull(context);
                Assert.IsNotNull(context.Connection);
                Assert.IsNotNull(context.Database);
                Assert.IsTrue(context.Connection.IsConnected);

                await context.CloseAsync();

                Assert.IsFalse(context.Connection.IsConnected);
            }
        }