Skip to content

Commit 9e94be8

Browse files
committed
Update SupervisorControllerTests.cs
1 parent c2a1560 commit 9e94be8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

DigitalLearningSolutions.Web.Tests/Controllers/SupervisorController/SupervisorControllerTests.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)