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); }
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); }
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); }
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); }