Ejemplo n.º 1
0
        public async Task HideFile()
        {
            using (var b = new TestBucket())
            {
                var u0 = await b.UploadFile("file", "content0");

                var u1 = await b.UploadFile("file", "content1");

                var v = await b.ListFileVersions();

                Assert.AreEqual(2, v.files.Count);
                Assert.AreEqual(u0.fileName, v.files[0].fileName);
                Assert.AreEqual(u1.fileName, v.files[1].fileName);

                var h = await b.HideFile(u0.fileName);

                v = await b.ListFileVersions();

                Assert.AreEqual(2, v.files.Count);
                Assert.AreEqual("hide", v.files[0].action);
                Assert.AreEqual("upload", v.files[1].action);
            }
        }