private BlobClient GetTimeStampedBlobReference(DateTime fileDate, string container, string fileName)
        {
            var filePath           = TimeStampedFilePathBuilder.GetTimeStampedFilePath(fileDate, fileName);
            var containerReference = _blobClient.GetBlobContainerClient(container);

            return(containerReference.GetBlobClient(filePath));
        }
        public void BuildCorrectPath(int year, int month, int day, int hour, int minute, int second, string fileName, string expectedFilePath)
        {
            var fileDate = new DateTime(year, month, day, hour, minute, second);
            var actual   = TimeStampedFilePathBuilder.GetTimeStampedFilePath(fileDate, fileName);

            Assert.Equal(expectedFilePath, actual);
        }
        /// <summary>
        /// Creates a SAS download link to allow direct blob download
        /// </summary>
        /// <param name="fileDate"></param>
        /// <param name="container"></param>
        /// <param name="fileName"></param>
        /// <param name="validForMinutes"></param>
        /// <param name="friendlyFileName">A filename to optionally use for the SAS download</param>
        /// <returns></returns>
        public Task <RepositoryResult <SasDownloadLink> > GetSasDownloadLinkAsync(DateTime fileDate, string container, string fileName, int validForMinutes = 5, string friendlyFileName = null)
        {
            var filePath = TimeStampedFilePathBuilder.GetTimeStampedFilePath(fileDate, fileName);

            return(GetSasDownloadLinkInternalAsync(filePath, container, validForMinutes, friendlyFileName));
        }