Skip to content

Commit c23d0b2

Browse files
TD-4702 Resolving the test failed
1 parent 564bb1b commit c23d0b2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)