public async Task WhenRequestDownloadReadMeFile_ThenReturnsTrueIfFileIsDownloaded() { bool isFileDownloaded = true; string batchId = "7b4cdf10-adfa-4ed6-b2fe-d1543d8b7272"; string exchangeSetRootPath = @"D:\\Downloads"; string filePath = "TestFilePath"; A.CallTo(() => fakefileShareService.DownloadReadMeFile(A <string> .Ignored, A <string> .Ignored, A <string> .Ignored, A <string> .Ignored)).Returns(isFileDownloaded); isFileDownloaded = await fulfilmentFileShareService.DownloadReadMeFile(filePath, batchId, exchangeSetRootPath, null); Assert.AreEqual(true, isFileDownloaded); }
public async Task <bool> DownloadReadMeFile(string filePath, string batchId, string exchangeSetRootPath, string correlationId) { return(await fileShareService.DownloadReadMeFile(filePath, batchId, exchangeSetRootPath, correlationId)); }