Exemple #1
0
 public AdminFileExtractRequest(Guid applicationId, FinancialReviewClarificationFile financialClarificationFile)
 {
     ApplicationId = applicationId;
     PageId        = "FinanceClarificationFiles";
     Filename      = financialClarificationFile.Filename;
     AdminFileType = AdminFileType.Finance;
 }
Exemple #2
0
        public async Task Run_Downloads_and_Saves_Finance_File_Into_BlobStorage()
        {
            var financeClarificationFile = new FinancialReviewClarificationFile {
                Filename = "file.pdf"
            };

            var request = new AdminFileExtractRequest(_applicationId, financeClarificationFile);
            await _sut.Run(request);

            _applyApiClient.Verify(x => x.DownloadFinanceClarificationFile(_applicationId, financeClarificationFile.Filename), Times.Once);
            _blobClient.Verify(x => x.UploadAsync(It.IsAny <Stream>(), true, It.IsAny <CancellationToken>()), Times.Once);
        }