Esempio n. 1
0
        public void CanInsertAndDelete()
        {
            var store = new AzureBigTableStore<HasIdentityAndRange>(connectionString: ConnectionString);
            var item = new HasIdentityAndRange()
            {
                Id = Guid.NewGuid().ToString(),
                RangeKey = "1"
            };
            store.InsertAsync(item).Wait();
            store.DeleteAsync(item).Wait();

            Assert.False(store.ExistsAsync(item.Id, item.RangeKey).Result);
        }
Esempio n. 2
0
        public void CanInsertAndDelete()
        {
            var store = new AzureBigTableStore <HasIdentityAndRange>(connectionString: ConnectionString);
            var item  = new HasIdentityAndRange()
            {
                Id       = Guid.NewGuid().ToString(),
                RangeKey = "1"
            };

            store.InsertAsync(item).Wait();
            store.DeleteAsync(item).Wait();

            Assert.False(store.ExistsAsync(item.Id, item.RangeKey).Result);
        }
Esempio n. 3
0
        public async Task CanInsertAndDelete()
        {
            var store = new AzureBigTableStore <HasIdentityAndRange>(connectionString: ConnectionString);
            var item  = new HasIdentityAndRange()
            {
                Id           = Guid.NewGuid().ToString(),
                RangeKey     = "1",
                LastModified = DateTimeOffset.Now
            };
            await store.InsertAsync(item);

            await store.DeleteAsync(item);

            Assert.False(await store.ExistsAsync(item.Id, item.RangeKey));
        }