public async Task AzureStorage_WithCache_Test()
        {
            var testEntity = GetTestEntity();

            var storage1 = new NoSqlTableInMemory <TestEntity>();

            Parallel.For(1, 10, i =>
            {
                storage1.CreateIfNotExistsAsync(testEntity).Wait();
            });

            var createdEntity = await storage1.GetDataAsync(testEntity.PartitionKey, testEntity.RowKey);

            Assert.IsNotNull(createdEntity);
        }
        public async Task Verify_InsertAndGenerate_DateTime_RowKey_Increments()
        {
            var testEntity = GetTestEntity();

            var storage1 = new NoSqlTableInMemory <TestEntity>();

            for (int i = 0; i < 1000; ++i)
            {
                testEntity.Counter = i;
                await storage1.InsertAndGenerateRowKeyAsDateTimeAsync(testEntity, DateTime.UtcNow);
            }

            int ct          = 0;
            var allEntities = (await storage1.GetDataAsync()).OrderBy(x => x.RowKey);

            foreach (var entity in allEntities)
            {
                Assert.AreEqual <int>(ct, entity.Counter);
                ++ct;
            }
        }
 public Task <T> GetDataAsync(string partition, string row) => _cache.GetDataAsync(partition, row);