Ejemplo n.º 1
0
        public void GetUriReturnsContainerUrl()
        {
            var objId = Guid.NewGuid().ToString();

            var azureBlobContainer = new TestAzureBlobContainer(
                account,
                AzureBlobTestContainer);

            Assert.AreEqual($"http://127.0.0.1:10000/devstoreaccount1/{AzureBlobTestContainer}/{objId}",
                            azureBlobContainer.GetUri(objId).ToString());
        }
        public void GetUriReturnsContainerUrl()
        {
            var objId = Guid.NewGuid().ToString();

            var azureBlobContainer = new TestAzureBlobContainer(
                CloudConfiguration.GetStorageAccount("DataConnectionString"),
                AzureBlobTestContainer);

            Assert.AreEqual(
                string.Format("http://127.0.0.1:10000/devstoreaccount1/{0}/{1}", AzureBlobTestContainer, objId),
                azureBlobContainer.GetUri(objId).ToString());
        }