public void AzureProviderUtilitiesGenerateListOfBlocksToCommitReturnsValidOutputForMultipleBlocks()
        {
            var provider = new ArchivialLibrary.StorageProviders.Azure.AzureStorageProviderUtilities();

            Guid fileID  = new Guid("51690d6e-f42a-4581-8e45-660b859bb432");
            int  blockID = 4;

            var result = provider.GenerateListOfBlocksToCommit(fileID, blockID);

            var expected = new List <string>()
            {
                "NTE2OTBkNmUtZjQyYS00NTgxLThlNDUtNjYwYjg1OWJiNDMyLTAwMDAwMDAw",
                "NTE2OTBkNmUtZjQyYS00NTgxLThlNDUtNjYwYjg1OWJiNDMyLTAwMDAwMDAx",
                "NTE2OTBkNmUtZjQyYS00NTgxLThlNDUtNjYwYjg1OWJiNDMyLTAwMDAwMDAy",
                "NTE2OTBkNmUtZjQyYS00NTgxLThlNDUtNjYwYjg1OWJiNDMyLTAwMDAwMDAz",
                "NTE2OTBkNmUtZjQyYS00NTgxLThlNDUtNjYwYjg1OWJiNDMyLTAwMDAwMDA0"
            };

            Assert.IsNotNull(result);
            Assert.AreEqual(expected.Count, result.Count);
            Assert.AreEqual(expected[0], result[0]);
            Assert.AreEqual(expected[1], result[1]);
            Assert.AreEqual(expected[2], result[2]);
            Assert.AreEqual(expected[3], result[3]);
            Assert.AreEqual(expected[4], result[4]);
        }
        public void AzureProviderUtilitiesGenerateListOfBlocksToCommitThrowsOnMissingBlockNumber()
        {
            var provider = new ArchivialLibrary.StorageProviders.Azure.AzureStorageProviderUtilities();

            Guid fileID  = new Guid("51690d6e-f42a-4581-8e45-660b859bb432");
            int  blockID = -1; // should throw

            var result = provider.GenerateListOfBlocksToCommit(fileID, blockID);
        }
        public void AzureProviderUtilitiesGenerateListOfBlocksToCommitThrowsOnMissingFileID()
        {
            var provider = new ArchivialLibrary.StorageProviders.Azure.AzureStorageProviderUtilities();

            Guid fileID  = Guid.Empty; // should throw
            int  blockID = 1;

            var result = provider.GenerateListOfBlocksToCommit(fileID, blockID);
        }