Skip to content
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

Merged
merged 4 commits into from
Nov 11, 2019

Conversation

mrpmorris
Copy link
Contributor

No description provided.

@mrpmorris mrpmorris changed the title ER-1515 Rename ProgrammeLevel to ApprenticeshipLevel ER-1515 Rename ProgrammeLevel to ApprenticeshipLevel +semver: minor Sep 6, 2019
return false;
}

//TODO: PeteM - RemapFromEducationLevel
Copy link
Contributor

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; }
Copy link
Contributor

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
Copy link
Contributor

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; }
Copy link
Contributor

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; }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one is fine 👍

Copy link
Contributor

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);
Copy link
Contributor

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()

Copy link
Contributor

@shomavg shomavg left a 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; }
Copy link
Contributor

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; }
Copy link
Contributor

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; }
Copy link
Contributor

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; }
Copy link
Contributor

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; }
Copy link
Contributor

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; }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change name to ApprenticeshipLevel

Copy link
Contributor

@shomavg shomavg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@DevenKShah DevenKShah merged commit fd125b1 into master Nov 11, 2019
@DevenKShah DevenKShah deleted the ER-1515_RemoveProgrammeLevel branch November 11, 2019 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants