コード例 #1
0
        public async Task ExistsReturnFalseForNonExistent()
        {
            var store  = new AzureKeyValueStore(ConnectionString, ContainerName);
            var exists = await store.ExistsAsync("adas/asdas/asdasdsa");

            Assert.False(exists);
        }
コード例 #2
0
        public void ExistsReturnFalseForNonExistent()
        {
            var store  = new AzureKeyValueStore(ConnectionString, ContainerName);
            var exists = store.ExistsAsync("adas/asdas/asdasdsa").Result;

            Assert.False(exists);
        }
コード例 #3
0
        public void ExistsReturnFalseForNonExistent()
        {
            var store = new AzureKeyValueStore(ConnectionString, ContainerName);
            var exists = store.ExistsAsync("adas/asdas/asdasdsa").Result;

            Assert.False(exists);
        }
コード例 #4
0
 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);
 }
コード例 #5
0
        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));
        }