public void WillHaveCorrectUriWhenGivenDirectory(string directoryName)
        {
            var directoryPath = Path.Combine(BasePath, directoryName);

            var directory = new StandaloneAzureBlobDirectory(BasePath, directoryName);

            Assert.Equal(new Uri(directoryPath), directory.Uri);
        }
        public StandaloneAzureBlobDirectoryListTests()
            : base(DirectoryType.Container)
        {
            _directory = new StandaloneAzureBlobDirectory(BasePath, "directory");
            var directoryPath = Path.Combine(BasePath, "directory");

            Directory.CreateDirectory(Path.Combine(directoryPath, "1a"));
            Directory.CreateDirectory(Path.Combine(directoryPath, "1b"));
            Directory.CreateDirectory(Path.Combine(directoryPath, "1c"));
            Directory.CreateDirectory(Path.Combine(directoryPath, "1d"));
            Directory.CreateDirectory(Path.Combine(directoryPath, "1e"));

            File.WriteAllText(Path.Combine(directoryPath, "1"), "Test File");
            File.WriteAllText(Path.Combine(directoryPath, "2"), "Test File");
            File.WriteAllText(Path.Combine(directoryPath, "3"), "Test File");
            File.WriteAllText(Path.Combine(directoryPath, "4"), "Test File");
            File.WriteAllText(Path.Combine(directoryPath, "5"), "Test File");

            File.WriteAllText(Path.Combine(directoryPath, "1a", "1"), "Test File");
            File.WriteAllText(Path.Combine(directoryPath, "1a", "2"), "Test File");
            File.WriteAllText(Path.Combine(directoryPath, "1a", "3"), "Test File");
            File.WriteAllText(Path.Combine(directoryPath, "1a", "4"), "Test File");
            File.WriteAllText(Path.Combine(directoryPath, "1b", "5"), "Test File");
        }
        public void WillThrowIfBlobNameNotGiven()
        {
            var directory = new StandaloneAzureBlobDirectory(BasePath, "somedirectory");

            Assert.Throws<ArgumentNullException>(() => directory.GetBlockBlobReference(null));
        }