-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ER-1515 Rename ProgrammeLevel to ApprenticeshipLevel +semver: minor #807
Conversation
return false; | ||
} | ||
|
||
//TODO: PeteM - RemapFromEducationLevel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This TODO still valid?
@@ -6,7 +6,7 @@ namespace Esfa.Recruit.Employer.Web.ViewModels.Part1.Training | |||
public class ConfirmTrainingViewModel | |||
{ | |||
public string TrainingTitle { get; set; } | |||
public ProgrammeLevel Level { get; set; } | |||
public ApprenticeshipLevel Level { get; set; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can I suggest that the property be called ApprenticeshipLevel
{ | ||
public static class ApprenticeshipLevelHelper | ||
{ | ||
//TODO: PeteM - TryRemapFromEducationLevel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove please
@@ -9,7 +9,7 @@ public interface IApprenticeshipProgramme | |||
string Title { get; } | |||
DateTime? EffectiveFrom { get; } | |||
DateTime? EffectiveTo { get; } | |||
ProgrammeLevel Level { get; } | |||
ApprenticeshipLevel Level { get; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If property name can be changed as well please to ApprenticeshipLevel
@@ -33,7 +33,7 @@ internal class VacancySummaryDetails | |||
public DurationUnit DurationUnit { get; set; } | |||
public string TrainingTitle { get; set; } | |||
public TrainingType TrainingType { get; set; } | |||
public ProgrammeLevel TrainingLevel { get; set; } | |||
public ApprenticeshipLevel TrainingLevel { get; set; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one is fine 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change name to ApprenticeshipLevel
public void TryRemapFromInt_ShouldSucceedAndReturnHigher_WhenConvertingFromFoundation5() | ||
{ | ||
bool success = ApprenticeshipLevelHelper.TryRemapFromInt(5, out ApprenticeshipLevel result); | ||
success.Should().Be(true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for using Fluent, just a tip .Be(true)
can be replaced with BeTrue()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good but the change name to ApprenticeshipLevel to keep consistency.
@@ -114,7 +114,7 @@ private bool IsEditRequired(string fieldIdentifier) | |||
}.Count(s => s == VacancyPreviewSectionState.Incomplete || s == VacancyPreviewSectionState.InvalidIncomplete); | |||
|
|||
public string IncompleteRequiredSectionText => "section".ToQuantity(IncompleteRequiredSectionCount, ShowQuantityAs.None); | |||
public ProgrammeLevel Level { get; set; } | |||
public ApprenticeshipLevel Level { get; set; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we keep the name consistent to ApprenticeshipLevel?
@@ -114,7 +114,7 @@ public class VacancyPreviewViewModel : DisplayVacancyViewModel | |||
public bool VacancyDescriptionRequiresEdit => IsEditRequired(FieldIdentifiers.VacancyDescription); | |||
public bool WageRequiresEdit => IsEditRequired(FieldIdentifiers.Wage); | |||
public bool WorkingWeekRequiresEdit => IsEditRequired(FieldIdentifiers.WorkingWeek); | |||
public ProgrammeLevel Level { get; set; } | |||
public ApprenticeshipLevel Level { get; set; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change name to ApprenticeshipLevel.
@@ -121,6 +121,6 @@ private string GetFieldIdentifierCssClass(string fieldIdentifer) | |||
{ | |||
return FieldIdentifiers.Single(f => f.FieldIdentifier == fieldIdentifer).FieldValueHasChanged ? CssFieldChanged : null; | |||
} | |||
public ProgrammeLevel Level { get; set; } | |||
public ApprenticeshipLevel Level { get; set; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change name to ApprenticeshipLevel
@@ -16,7 +16,7 @@ public class VacancySummaryViewModel | |||
public string ProgrammeId { get; set; } | |||
public string TrainingTitle { get; set; } | |||
public TrainingType TrainingType { get; set; } | |||
public ProgrammeLevel TrainingLevel { get; set; } | |||
public ApprenticeshipLevel TrainingLevel { get; set; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change name to ApprenticeshipLevel
@@ -25,7 +25,7 @@ public class VacancySummary | |||
public DateTime? StartDate { get; set; } | |||
public string TrainingTitle { get; set; } | |||
public TrainingType TrainingType { get; set; } | |||
public ProgrammeLevel TrainingLevel { get; set; } | |||
public ApprenticeshipLevel TrainingLevel { get; set; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change name to ApprenticeshipLevel
@@ -33,7 +33,7 @@ internal class VacancySummaryDetails | |||
public DurationUnit DurationUnit { get; set; } | |||
public string TrainingTitle { get; set; } | |||
public TrainingType TrainingType { get; set; } | |||
public ProgrammeLevel TrainingLevel { get; set; } | |||
public ApprenticeshipLevel TrainingLevel { get; set; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change name to ApprenticeshipLevel
e0c1f5f
to
b1b6d9d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
b1b6d9d
to
79fee60
Compare
No description provided.