-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FAT2-295 - Add outer api response types
- Loading branch information
Showing
3 changed files
with
102 additions
and
0 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
...A.DAS.EmployerFinance.UnitTests/Infrastructure/OuterApiResponses/GetFrameworksResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
using System.Collections.Generic; | ||
using Newtonsoft.Json; | ||
|
||
namespace SFA.DAS.EmployerFinance.UnitTests.Infrastructure.OuterApiResponses | ||
{ | ||
public class GetFrameworksResponse | ||
{ | ||
[JsonProperty("frameworks")] | ||
public List<FrameworkResponseItem> Frameworks { get; set; } | ||
} | ||
|
||
public class FrameworkResponseItem | ||
{ | ||
[JsonProperty("id")] | ||
public string Id { get; set; } | ||
|
||
[JsonProperty("frameworkName")] | ||
public string FrameworkName { get; set; } | ||
|
||
[JsonProperty("pathwayName")] | ||
public string PathwayName { get; set; } | ||
|
||
[JsonProperty("title")] | ||
public string Title { get; set; } | ||
|
||
[JsonProperty("level")] | ||
public long Level { get; set; } | ||
|
||
[JsonProperty("frameworkCode")] | ||
public long FrameworkCode { get; set; } | ||
|
||
[JsonProperty("progType")] | ||
public long ProgType { get; set; } | ||
|
||
[JsonProperty("pathwayCode")] | ||
public long PathwayCode { get; set; } | ||
|
||
[JsonProperty("maxFunding")] | ||
public long MaxFunding { get; set; } | ||
|
||
[JsonProperty("duration")] | ||
public long Duration { get; set; } | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
...FA.DAS.EmployerFinance.UnitTests/Infrastructure/OuterApiResponses/GetProvidersResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using System.Collections.Generic; | ||
using Newtonsoft.Json; | ||
|
||
namespace SFA.DAS.EmployerFinance.UnitTests.Infrastructure.OuterApiResponses | ||
{ | ||
public class GetProvidersResponse | ||
{ | ||
[JsonProperty("providers")] | ||
public List<ProviderResponseItem> Providers { get; set; } | ||
} | ||
|
||
public class ProviderResponseItem | ||
{ | ||
[JsonProperty("ukprn")] | ||
public long Ukprn { get; set; } | ||
|
||
[JsonProperty("name")] | ||
public string Name { get; set; } | ||
|
||
[JsonProperty("contactUrl")] | ||
public string ContactUrl { get; set; } | ||
|
||
[JsonProperty("email")] | ||
public string Email { get; set; } | ||
|
||
[JsonProperty("phone")] | ||
public string Phone { get; set; } | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
...FA.DAS.EmployerFinance.UnitTests/Infrastructure/OuterApiResponses/GetStandardsResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using System.Collections.Generic; | ||
using Newtonsoft.Json; | ||
|
||
namespace SFA.DAS.EmployerFinance.UnitTests.Infrastructure.OuterApiResponses | ||
{ | ||
public class GetStandardsResponse | ||
{ | ||
[JsonProperty("standards")] | ||
public List<StandardResponseItem> Standards { get; set; } | ||
} | ||
|
||
public class StandardResponseItem | ||
{ | ||
[JsonProperty("id")] | ||
public long Id { get; set; } | ||
|
||
[JsonProperty("level")] | ||
public long Level { get; set; } | ||
|
||
[JsonProperty("title")] | ||
public string Title { get; set; } | ||
|
||
[JsonProperty("duration")] | ||
public long Duration { get; set; } | ||
|
||
[JsonProperty("maxFunding")] | ||
public long MaxFunding { get; set; } | ||
} | ||
} |