Example #1
0
        public void ToString_BlobPath_ReturnsExpectedResult()
        {
            BlobPath path = BlobPath.Parse("container/blob", false);

            Assert.Equal("container/blob", path.ToString());

            path = BlobPath.Parse("container", true);
            Assert.Equal("container", path.ToString());

            path = new BlobPath("container", null);
            Assert.Equal("container", path.ToString());
        }
Example #2
0
        public void ToString_BlobPath_ReturnsExpectedResult()
        {
            BlobPath path = BlobPath.Parse("container/blob", false);

            Assert.Equal("container/blob", path.ToString());

            // '[' ad ']' are valid in blob names
            path = BlobPath.Parse("container/blob[0]", false);
            Assert.Equal("container/blob[0]", path.ToString());

            path = BlobPath.Parse("container", true);
            Assert.Equal("container", path.ToString());

            path = new BlobPath("container", null);
            Assert.Equal("container", path.ToString());
        }
Example #3
0
 public Task AddPathKeyPair(BlobPath path, string key)
 => AddPathKeyPair(path.ToString(), key);
Example #4
0
 public Task <string> GetKeyByPath(BlobPath path)
 => GetKeyByPath(path.ToString());