Exemplo n.º 1
0
        public async Task ListBuckets()
        {
            using (var b = new TestBucket())
            {
                var r = await b.ListBuckets();

                Assert.Contains(b.BucketId, r.buckets.Select(x => x.bucketId).ToArray());
            }
        }
Exemplo n.º 2
0
        public async Task UpdateBucket()
        {
            using (var t = new TestBucket())
            {
                Assert.AreEqual("allPrivate", t.createBucketResponse.bucketType);
                var u = await t.UpdateBucket("allPublic");

                var b = await t.ListBuckets();

                Assert.AreEqual("allPublic", b.buckets.First(x => x.bucketId == t.BucketId).bucketType);
            }
        }