Skip to content

Commit 277aa11

Browse files
authored
Merge pull request #2751 from TechnologyEnhancedLearning/Develop/Fix/TD-4223-Last-access-date-IssueFix
TD-4223- Passed blank 'last access date' when a delegate added to a group.
2 parents 1239067 + b3c4a45 commit 277aa11

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
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,

0 commit comments

Comments
 (0)