public async Task ExistsReturnFalseForNonExistent() { var store = new AzureKeyValueStore(ConnectionString, ContainerName); var exists = await store.ExistsAsync("adas/asdas/asdasdsa"); Assert.False(exists); }
public void ExistsReturnFalseForNonExistent() { var store = new AzureKeyValueStore(ConnectionString, ContainerName); var exists = store.ExistsAsync("adas/asdas/asdasdsa").Result; Assert.False(exists); }
public void CanInsertAndExistsReturnsTrue() { var store = new AzureKeyValueStore(ConnectionString, ContainerName); var simpleBlob = new SimpleBlob() { Body = new MemoryStream(new byte[4096]), Id = Guid.NewGuid().ToString("N") }; store.InsertAsync(simpleBlob).Wait(); Assert.True(store.ExistsAsync(simpleBlob.Id).Result); }
public async Task CanInsertAndExistsReturnsTrue() { var store = new AzureKeyValueStore(ConnectionString, ContainerName); var simpleBlob = new SimpleBlob() { Body = new MemoryStream(new byte[4096]), Id = Guid.NewGuid().ToString("N") }; await store.InsertAsync(simpleBlob); Assert.True(await store.ExistsAsync(simpleBlob.Id)); }