Skip to content

Commit 909abb0

Browse files
committed
Merge branch 'Release-2024.29-Hotfix' into Release-2024.32
2 parents 8dcea75 + 2d700ed commit 909abb0

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

DigitalLearningSolutions.Web.Tests/Services/GroupServiceTests/GroupsServiceEnrolDelegateTests.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public void EnrolDelegateOnGroupCourses_adds_new_progress_record_when_no_existin
5454
reusableDelegateDetails.Id,
5555
reusableGroupCourse.CustomisationId,
5656
reusableGroupCourse.CurrentVersion,
57-
testDate,
57+
null,
5858
3,
5959
null,
6060
A<DateTime?>._,
@@ -97,7 +97,7 @@ public void EnrolDelegateOnGroupCourses_adds_new_progress_record_when_existing_p
9797
reusableDelegateDetails.Id,
9898
reusableGroupCourse.CustomisationId,
9999
reusableGroupCourse.CurrentVersion,
100-
testDate,
100+
null,
101101
3,
102102
null,
103103
A<DateTime?>._,
@@ -140,7 +140,7 @@ public void EnrolDelegateOnGroupCourses_adds_new_progress_record_when_existing_p
140140
reusableDelegateDetails.Id,
141141
reusableGroupCourse.CustomisationId,
142142
reusableGroupCourse.CurrentVersion,
143-
testDate,
143+
null,
144144
3,
145145
null,
146146
A<DateTime?>._,
@@ -183,11 +183,11 @@ public void
183183
reusableDelegateDetails.Id,
184184
reusableGroupCourse.CustomisationId,
185185
reusableGroupCourse.CurrentVersion,
186-
testDate,
186+
null,
187187
3,
188188
null,
189189
A<DateTime?>._,
190-
0 ,
190+
0,
191191
testDate
192192
)
193193
).MustHaveHappened();
@@ -227,7 +227,7 @@ public void
227227
reusableDelegateDetails.Id,
228228
reusableGroupCourse.CustomisationId,
229229
reusableGroupCourse.CurrentVersion,
230-
testDate,
230+
null,
231231
3,
232232
null,
233233
testDate.AddMonths(12),
@@ -270,7 +270,7 @@ public void
270270
reusableDelegateDetails.Id,
271271
reusableGroupCourse.CustomisationId,
272272
reusableGroupCourse.CurrentVersion,
273-
testDate,
273+
null,
274274
3,
275275
null,
276276
null,
@@ -315,7 +315,7 @@ public void
315315
reusableDelegateDetails.Id,
316316
reusableGroupCourse.CustomisationId,
317317
reusableGroupCourse.CurrentVersion,
318-
testDate,
318+
null,
319319
3,
320320
null,
321321
expectedFutureDate,

DigitalLearningSolutions.Web.Tests/Services/GroupServiceTests/GroupsServiceTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
using DigitalLearningSolutions.Data.Models.Progress;
1414
using DigitalLearningSolutions.Data.Models.User;
1515
using DigitalLearningSolutions.Data.Services;
16-
16+
1717
using DigitalLearningSolutions.Data.Utilities;
1818
using DigitalLearningSolutions.Web.Services;
1919
using DigitalLearningSolutions.Web.Tests.TestHelpers;
@@ -802,7 +802,7 @@ private void SetupEnrolProcessFakes(
802802
A<int>._,
803803
A<int>._,
804804
A<int>._,
805-
A<DateTime>._,
805+
A<DateTime?>._,
806806
A<int>._,
807807
A<int?>._,
808808
A<DateTime?>._,

DigitalLearningSolutions.Web/Services/GroupsService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ IEnumerable<NotificationPreference> delegateNotificationPreferences
755755
delegateUserId,
756756
groupCourse.CustomisationId,
757757
groupCourse.CurrentVersion,
758-
clockUtility.UtcNow,
758+
null,
759759
3,
760760
addedByAdminId,
761761
completeByDate,

DigitalLearningSolutions.Web/ViewModels/TrackingSystem/Delegates/Shared/DelegateSelfAssessmentInfoViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ private DelegateSelfAssessmentInfoViewModel(SelfAssessmentDelegate delegateInfo)
5555
EnrolmentMethod = delegateInfo.EnrolmentMethodId switch
5656
{
5757
1 => "Self enrolled",
58-
2 => enrolledByFullName == null ? "Admin/supervisor enrolled" : "Enrolled by " + enrolledByFullName,
58+
2 => enrolledByFullName == null ? "Admin/supervisor enrolled" : "Enrolled by Admin/Supervisor - " + enrolledByFullName,
5959
3 => "Group",
6060
_ => "System",
6161
};

DigitalLearningSolutions.Web/Views/TrackingSystem/Delegates/Shared/_DelegateSelfAssessmentProgressDetails.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
string enrolmentMethod = Model.EnrolmentMethodId switch
6262
{
6363
1 => "Self enrolled",
64-
2 => Model.EnrolledByFullName != null ? "Enrolled by Supervisor - " + Model.EnrolledByFullName : "Admin/supervisor enrolled",
64+
2 => Model.EnrolledByFullName != null ? "Enrolled by Admin/Supervisor - " + Model.EnrolledByFullName : "Admin/Supervisor enrolled",
6565
3 => "Group",
6666
_ => "System",
6767
};

0 commit comments

Comments
 (0)