File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
DigitalLearningSolutions.Web.Tests/Controllers/SupervisorController Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ public class SupervisorControllerTests
3131 private IEmailService emailService = null ! ;
3232 private IClockUtility clockUtility = null ! ;
3333 private ICandidateAssessmentDownloadFileService candidateAssessmentDownloadFileService = null ! ;
34+ private IPdfService pdfService = null ! ;
3435
3536 [ SetUp ]
3637 public void Setup ( )
@@ -53,7 +54,7 @@ public void Setup()
5354 emailService = A . Fake < IEmailService > ( ) ;
5455 clockUtility = A . Fake < IClockUtility > ( ) ;
5556 candidateAssessmentDownloadFileService = A . Fake < ICandidateAssessmentDownloadFileService > ( ) ;
56-
57+ pdfService = A . Fake < IPdfService > ( ) ;
5758 A . CallTo ( ( ) => candidateAssessmentDownloadFileService . GetCandidateAssessmentDownloadFileForCentre ( A < int > . _ , A < int > . _ , A < bool > . _ ) )
5859 . Returns ( new byte [ ] { } ) ;
5960 }
@@ -81,7 +82,8 @@ public void ExportCandidateAssessment_should_return_file_object_with_file_name_i
8182 emailGenerationService ,
8283 emailService ,
8384 candidateAssessmentDownloadFileService ,
84- clockUtility
85+ clockUtility ,
86+ pdfService
8587 ) ;
8688 string expectedFileName = $ "{ ( ( selfAssessmentName . Length > 30 ) ? selfAssessmentName . Substring ( 0 , 30 ) : selfAssessmentName ) } - { delegateName } - { clockUtility . UtcNow : yyyy-MM-dd} .xlsx";
8789
You can’t perform that action at this time.
0 commit comments