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

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

            store.InsertAsync(item).Wait();

            Assert.True(store.ExistsAsync(item.Id, item.RangeKey).Result);
        }
Ejemplo n.º 3
0
        public void CanInsertAndDelete()
        {
            var store = new AzureBigTableStore<HasIdentityAndRange>(connectionString: ConnectionString);
            var item = new HasIdentityAndRange()
            {
                Id = Guid.NewGuid().ToString(),
                RangeKey = "1",
                LastModified = DateTimeOffset.Now
            };
            store.InsertAsync(item).Wait();
            store.DeleteAsync(item).Wait();

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

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

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