Skip to content

Commit

Permalink
Rename variables to follow convention
Browse files Browse the repository at this point in the history
  • Loading branch information
annaked committed Nov 20, 2017
1 parent c65eae3 commit f85ca8d
Show file tree
Hide file tree
Showing 5 changed files with 146 additions and 152 deletions.
8 changes: 4 additions & 4 deletions (CRS) Criteria – Express Entry/EducationPointsCalculator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ namespace _CRS__Criteria___Express_Entry
{
static class EducationPointsCalculator
{
public static int CountPointsForEducationWithSpouse(ushort EduLevel)
public static int CountPointsForEducationWithSpouse(ushort eduLevel)
{
switch (EduLevel)
switch (eduLevel)
{
case 1:
return 0;
Expand All @@ -34,9 +34,9 @@ public static int CountPointsForEducationWithSpouse(ushort EduLevel)
}


public static int CountPointsForEducation(ushort EduLevel)
public static int CountPointsForEducation(ushort eduLevel)
{
switch (EduLevel)
switch (eduLevel)
{
case 1:
return 0;
Expand Down
36 changes: 18 additions & 18 deletions (CRS) Criteria – Express Entry/ExperiencePointsCalculator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,25 @@ namespace _CRS__Criteria___Express_Entry
{
static class ExperiencePointsCalculator
{
public static int CountPointsForExperienceWithSpouse(int YearsOfExperience)
public static int CountPointsForExperienceWithSpouse(int yearsOfExperience)
{
if (YearsOfExperience >= 5)
if (yearsOfExperience >= 5)
{
return 70;
}
else if (YearsOfExperience == 4)
else if (yearsOfExperience == 4)
{
return 63;
}
else if (YearsOfExperience == 3)
else if (yearsOfExperience == 3)
{
return 56;
}
else if (YearsOfExperience == 2)
else if (yearsOfExperience == 2)
{
return 46;
}
else if (YearsOfExperience == 1)
else if (yearsOfExperience == 1)
{
return 35;
}
Expand All @@ -36,25 +36,25 @@ public static int CountPointsForExperienceWithSpouse(int YearsOfExperience)
}
}

public static int CountPointsForExperienceWithoutSpouse(int YearsOfExperience)
public static int CountPointsForExperienceWithoutSpouse(int yearsOfExperience)
{
if (YearsOfExperience >= 5)
if (yearsOfExperience >= 5)
{
return 80;
}
else if (YearsOfExperience == 4)
else if (yearsOfExperience == 4)
{
return 72;
}
else if (YearsOfExperience == 3)
else if (yearsOfExperience == 3)
{
return 64;
}
else if (YearsOfExperience == 2)
else if (yearsOfExperience == 2)
{
return 53;
}
else if (YearsOfExperience == 1)
else if (yearsOfExperience == 1)
{
return 40;
}
Expand All @@ -65,25 +65,25 @@ public static int CountPointsForExperienceWithoutSpouse(int YearsOfExperience)
}


public static int CountPointsForSpouseExperience(int YearsOfSpouseExperience)
public static int CountPointsForSpouseExperience(int yearsOfSpouseExperience)
{
if (YearsOfSpouseExperience >= 5)
if (yearsOfSpouseExperience >= 5)
{
return 10;
}
else if (YearsOfSpouseExperience == 4)
else if (yearsOfSpouseExperience == 4)
{
return 9;
}
else if (YearsOfSpouseExperience == 3)
else if (yearsOfSpouseExperience == 3)
{
return 8;
}
else if (YearsOfSpouseExperience == 2)
else if (yearsOfSpouseExperience == 2)
{
return 7;
}
else if (YearsOfSpouseExperience == 1)
else if (yearsOfSpouseExperience == 1)
{
return 5;
}
Expand Down
38 changes: 19 additions & 19 deletions (CRS) Criteria – Express Entry/LanguagePointsCalculator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,29 @@ namespace _CRS__Criteria___Express_Entry
static class LanguagePointsCalculator
{

public static int LanguagePointsCalculatorWithSpouse(int CLBPoints)
public static int LanguagePointsCalculatorWithSpouse(int clbPoints)
{
if (CLBPoints >= 10)
if (clbPoints >= 10)
{
return 32;
}
else if (CLBPoints == 9)
else if (clbPoints == 9)
{
return 29;
}
else if (CLBPoints == 8)
else if (clbPoints == 8)
{
return 22;
}
else if (CLBPoints == 7)
else if (clbPoints == 7)
{
return 16;
}
else if (CLBPoints == 6)
else if (clbPoints == 6)
{
return 8;
}
else if (CLBPoints == 5 || CLBPoints == 4)
else if (clbPoints == 5 || clbPoints == 4)
{
return 6;
}
Expand All @@ -42,29 +42,29 @@ public static int LanguagePointsCalculatorWithSpouse(int CLBPoints)
}


public static int LanguagePointsCalculatorWithoutSpouse(int CLBPoints)
public static int LanguagePointsCalculatorWithoutSpouse(int clbPoints)
{
if (CLBPoints >= 10)
if (clbPoints >= 10)
{
return 34;
}
else if (CLBPoints == 9)
else if (clbPoints == 9)
{
return 31;
}
else if (CLBPoints == 8)
else if (clbPoints == 8)
{
return 23;
}
else if (CLBPoints == 7)
else if (clbPoints == 7)
{
return 17;
}
else if (CLBPoints == 6)
else if (clbPoints == 6)
{
return 9;
}
else if (CLBPoints == 5 || CLBPoints == 4)
else if (clbPoints == 5 || clbPoints == 4)
{
return 6;
}
Expand All @@ -75,21 +75,21 @@ public static int LanguagePointsCalculatorWithoutSpouse(int CLBPoints)
}


public static int CalculatorOfSpouseLanguagePoints(int CLBSpousePoints)
public static int CalculatorOfSpouseLanguagePoints(int clbSpousePoints)
{
if (CLBSpousePoints >= 9)
if (clbSpousePoints >= 9)
{
return 5;
}
else if (CLBSpousePoints == 8 || CLBSpousePoints == 7)
else if (clbSpousePoints == 8 || clbSpousePoints == 7)
{
return 3;
}
else if (CLBSpousePoints == 6 || CLBSpousePoints == 5)
else if (clbSpousePoints == 6 || clbSpousePoints == 5)
{
return 1;
}
else if (CLBSpousePoints <= 4)
else if (clbSpousePoints <= 4)
{
return 0;
}
Expand Down
Loading

0 comments on commit f85ca8d

Please sign in to comment.