Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ private static IEnumerable<DomainError> BuildDateOfBirthValidationFailures(Draft
{
if (draftApprenticeshipDetails.AgeOnStartDate.HasValue && draftApprenticeshipDetails.AgeOnStartDate.Value < minimumAgeAtApprenticeshipStart)
{
yield return new DomainError(nameof(draftApprenticeshipDetails.DateOfBirth), $"The apprentice must be at least {minimumAgeAtApprenticeshipStart} years old at the start of their training");
yield return new DomainError(nameof(draftApprenticeshipDetails.DateOfBirth), $"The learner must be at least {minimumAgeAtApprenticeshipStart} years old at the start of their training");
yield break;
}

Expand All @@ -172,7 +172,7 @@ private static IEnumerable<DomainError> BuildDateOfBirthValidationFailures(Draft

if (draftApprenticeshipDetails.AgeOnStartDate.HasValue && draftApprenticeshipDetails.AgeOnStartDate.Value >= maximumAgeAtApprenticeshipStart)
{
yield return new DomainError(nameof(draftApprenticeshipDetails.DateOfBirth), $"The apprentice must be {maximumAgeAtApprenticeshipStart-1} years or under at the start of their training");
yield return new DomainError(nameof(draftApprenticeshipDetails.DateOfBirth), $"The learner must be {maximumAgeAtApprenticeshipStart-1} years or under at the start of their training");
yield break;
}

Expand Down
Loading