internal static Uri ChangeApprenticeshipStatusesForUKPRNSelectionUri(this IApprenticeshipServiceSettings extendee) { var uri = new Uri(extendee.ApiUrl); var trimmed = uri.AbsoluteUri.TrimEnd('/'); return(new Uri($"{trimmed}/ChangeApprenticeshipStatusForUKPRNSelection")); }
internal static Uri UpdateAprrenticeshipUri(this IApprenticeshipServiceSettings extendee) { var uri = new Uri(extendee.ApiUrl); var trimmed = uri.AbsoluteUri.TrimEnd('/'); return(new Uri($"{trimmed}/UpdateApprenticeship")); }
internal static Uri GetFrameworkByCodeUri(this IApprenticeshipServiceSettings extendee) { var uri = new Uri(extendee.ApiUrl); var trimmed = uri.AbsoluteUri.TrimEnd('/'); return(new Uri($"{trimmed}/GetFrameworkByCode")); }
internal static Uri DeleteBulkUploadApprenticeshipsUri(this IApprenticeshipServiceSettings extendee) { var uri = new Uri(extendee.ApiUrl); var trimmed = uri.AbsoluteUri.TrimEnd('/'); return(new Uri($"{trimmed}/DeleteBulkUploadApprenticeships")); }
internal static Uri GetStandardsAndFrameworksUri(this IApprenticeshipServiceSettings extendee) { var uri = new Uri(extendee.ApiUrl); var trimmed = uri.AbsoluteUri.TrimEnd('/'); return(new Uri($"{trimmed}/StandardsAndFrameworksSearch")); }
public ApprenticeshipServiceWrapper(IOptions <ApprenticeshipServiceSettings> settings, ICosmosDbHelper cosmosDbHelper, IOptions <CosmosDbSettings> cosmosDbSettings, IOptions <CosmosDbCollectionSettings> cosmosDbCollectionSettings) { Throw.IfNull(settings, nameof(settings)); _settings = settings.Value; _cosmosDbHelper = cosmosDbHelper; _cosmosDbSettings = cosmosDbSettings.Value; _cosmosDbCollectionSettings = cosmosDbCollectionSettings.Value; }