Example #1
0
        public void CanRoundTripHttpPath()
        {
            var httpPath             = new Uri("http://storageaccounthost.blob.core.windows.net/containerName");
            var asvPath              = WabStorageAbstraction.ConvertToAsvPath(httpPath);
            var httpPathRoundTripped = WabStorageAbstraction.ConvertToHttpPath(asvPath);

            Assert.AreEqual(httpPath.OriginalString.TrimEnd('/'), httpPathRoundTripped.OriginalString.TrimEnd('/'));
        }
Example #2
0
        public void CanConvertHttpPathToAsvPath()
        {
            var httpPath        = new Uri("http://storageaccounthost.blob.core.windows.net/containerName");
            var asvPath         = WabStorageAbstraction.ConvertToAsvPath(httpPath);
            var expectedAsvPath = Constants.WabsProtocolSchemeName + "*****@*****.**";

            Assert.AreEqual(expectedAsvPath, asvPath.OriginalString.TrimEnd('/'));
        }