Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

Commit

Permalink
Merge pull request #88 from SkillsFundingAgency/CI-942_Providers_not_…
Browse files Browse the repository at this point in the history
…accepting_new_apprentices

Ci 942 providers not accepting new apprentices
  • Loading branch information
JoseviAgullo authored Jul 31, 2018
2 parents eef7bd0 + 2c749b5 commit 82b1362
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 6 deletions.
Binary file added src/._Sfa.Das.ApprenticeshipInfoService.sln
Binary file not shown.
10 changes: 6 additions & 4 deletions src/SFA.DAS.Apprenticeships.Api.Types/Providers/Provider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ public class Provider

public IEnumerable<string> Aliases { get; set; }

/// <summary>
/// Is this provider also an employer
/// </summary>
public bool IsEmployerProvider { get; set; }
public bool CurrentlyNotStartingNewApprentices { get; set; }

/// <summary>
/// Is this provider also an employer
/// </summary>
public bool IsEmployerProvider { get; set; }

public string Uri { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ public class ProviderSummary

public IEnumerable<string> Aliases { get; set; }

public bool CurrentlyNotStartingNewApprentices { get; set; }

/// <summary>
/// Is this provider also an employer
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,7 @@ public sealed class FrameworkProviderSearchResultsItem : IApprenticeshipProvider
public bool IsNew { get; set; }

public bool IsLevyPayerOnly { get; set; }

public bool CurrentlyNotStartingNewApprentices { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,7 @@ public interface IApprenticeshipProviderSearchResultsItem
bool IsNew { get; set; }

bool IsLevyPayerOnly { get; set; }

bool CurrentlyNotStartingNewApprentices { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,7 @@ public sealed class ProviderDetail
public bool IsNew { get; set; }

public bool IsLevyPayerOnly { get; set; }

public bool CurrentlyNotStartingNewApprentices { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,7 @@ public sealed class FrameworkProviderSearchResultsItemResponse : IApprenticeship
public bool IsNew { get; set; }

public bool IsLevyPayerOnly { get; set; }

public bool CurrentlyNotStartingNewApprentices { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ public sealed class StandardProviderSearchResultsItemResponse : IApprenticeshipP
public bool HasParentCompanyGuarantee { get; set; }

public bool IsNew { get; set; }
public bool IsLevyPayerOnly { get; set; }

public bool IsLevyPayerOnly { get; set; }

public bool CurrentlyNotStartingNewApprentices { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,7 @@ public sealed class StandardProviderSearchResultsItem : IApprenticeshipProviderS
public bool IsNew { get; set; }

public bool IsLevyPayerOnly { get; set; }

public bool CurrentlyNotStartingNewApprentices { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public ProviderSummary MapToProviderDto(Provider provider)
Aliases = provider.Aliases,
EmployerSatisfaction = provider.EmployerSatisfaction,
IsEmployerProvider = provider.IsEmployerProvider,
CurrentlyNotStartingNewApprentices = provider.CurrentlyNotStartingNewApprentices,
IsHigherEducationInstitute = provider.IsHigherEducationInstitute,
LearnerSatisfaction = provider.LearnerSatisfaction,
NationalProvider = provider.NationalProvider,
Expand Down Expand Up @@ -228,7 +229,8 @@ private ApprenticeshipDetails MapFromInterface(IApprenticeshipProviderSearchResu
HasNonLevyContract = item.HasNonLevyContract,
HasParentCompanyGuarantee = item.HasParentCompanyGuarantee,
IsNew = item.IsNew,
IsLevyPayerOnly = item.IsLevyPayerOnly
IsLevyPayerOnly = item.IsLevyPayerOnly,
CurrentlyNotStartingNewApprentices = item.CurrentlyNotStartingNewApprentices
}
};
}
Expand Down

0 comments on commit 82b1362

Please sign in to comment.