public void Ensure_creation_async()
        {
            var model             = Mock.Of <IModel>();
            var configurationMock = new Mock <DbContextConfiguration>();

            var creator = new RedisDataStoreCreator(configurationMock.Object);

            Assert.False(creator.EnsureCreatedAsync(model).Result);
        }
        public void Ensure_deletion_async()
        {
            var model             = Mock.Of <IModel>();
            var configurationMock = new Mock <DbContextConfiguration>();
            var databaseMock      = new Mock <RedisDatabase>(configurationMock.Object);

            configurationMock.SetupGet(m => m.Database).Returns(databaseMock.Object);

            var creator = new RedisDataStoreCreator(configurationMock.Object);

            Assert.True(creator.EnsureDeletedAsync(model).Result);
            databaseMock.Verify(m => m.FlushDatabaseAsync(CancellationToken.None), Times.Once);
        }