public async Task UploadFilesToBlobContainer() { var csvDownloaderJob = CreatecsvDownloaderJob(); CreateResultsSourceMock(new ElectionResultsFile()); await csvDownloaderJob.DownloadFilesToBlobStorage(); await _bucketUploader .Received(1) .UploadFromUrl(Arg.Any <ElectionResultsFile>()); }
public async Task UploadFilesToBlobContainer() { var csvDownloaderJob = CreateFakeJob(); CreateResultsSourceMock(new ElectionResultsFile { Active = true }); await csvDownloaderJob.DownloadFiles(); await _bucketUploader .Received(1) .ProcessFile(Arg.Any <ElectionResultsFile>()); }