File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
DigitalLearningSolutions.Web.Tests/Controllers/SupervisorController Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ public class SupervisorControllerTests
4848 private ICandidateAssessmentDownloadFileService candidateAssessmentDownloadFileService = null ! ;
4949 private IPdfService pdfService = null ! ;
5050 private SupervisorController controller = null ! ;
51+ private ICourseCategoriesService courseCategoriesService = null ! ;
5152
5253 [ SetUp ]
5354 public void Setup ( )
@@ -71,6 +72,8 @@ public void Setup()
7172 clockUtility = A . Fake < IClockUtility > ( ) ;
7273 candidateAssessmentDownloadFileService = A . Fake < ICandidateAssessmentDownloadFileService > ( ) ;
7374 pdfService = A . Fake < IPdfService > ( ) ;
75+ courseCategoriesService = A . Fake < ICourseCategoriesService > ( ) ;
76+
7477 A . CallTo ( ( ) => candidateAssessmentDownloadFileService . GetCandidateAssessmentDownloadFileForCentre ( A < int > . _ , A < int > . _ , A < bool > . _ ) )
7578 . Returns ( new byte [ ] { } ) ;
7679
@@ -137,7 +140,8 @@ public void ExportCandidateAssessment_should_return_file_object_with_file_name_i
137140 emailService ,
138141 candidateAssessmentDownloadFileService ,
139142 clockUtility ,
140- pdfService
143+ pdfService ,
144+ courseCategoriesService
141145 ) ;
142146 string expectedFileName = $ "{ ( ( selfAssessmentName . Length > 30 ) ? selfAssessmentName . Substring ( 0 , 30 ) : selfAssessmentName ) } - { delegateName } - { clockUtility . UtcNow : yyyy-MM-dd} .xlsx";
143147
You can’t perform that action at this time.
0 commit comments