Skip to content

Commit

Permalink
Merge pull request #418 from DFE-Digital/feature/trust-v4-endpoint
Browse files Browse the repository at this point in the history
bugfix - PhaseOfEducationCode int not string
Added trust type
  • Loading branch information
paullocknimble authored Nov 22, 2023
2 parents 3f9d005 + e8a497a commit ee54291
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<ItemGroup>
<PackageReference Include="CsvHelper" Version="30.0.1" />
<PackageReference Include="Dfe.Academies.Contracts" Version="1.0.5" />
<PackageReference Include="Dfe.Academies.Contracts" Version="1.0.7" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.24" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.24">
<PrivateAssets>all</PrivateAssets>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public EstablishmentDtoBuilder WithPhaseOfEducation(Domain.Establishment.Establi
_dto.PhaseOfEducation = new NameAndCodeDto
{
Name = establishment?.PhaseOfEducation,
Code = establishment?.PhaseOfEducationCode
Code = establishment?.PhaseOfEducationCode.ToString()
};

return this;
Expand Down
2 changes: 1 addition & 1 deletion Dfe.Academies.Application/Dfe.Academies.Application.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Dfe.Academies.Contracts" Version="1.0.5" />
<PackageReference Include="Dfe.Academies.Contracts" Version="1.0.7" />
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="7.0.0" />
</ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions Dfe.Academies.Application/Queries/Trust/TrustQueries.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ private static TrustDto MapToTrustDto(Domain.Trust.Trust trust)
CompaniesHouseNumber = trust.CompaniesHouseNumber,
ReferenceNumber = trust.GroupID,
Ukprn = trust.UKPRN,
Type = new Contracts.V4.Establishments.NameAndCodeDto() { Code = trust.TrustType.Code, Name = trust.TrustType.Name },
Address = new AddressDto()
{
Street = trust.AddressLine1,
Expand Down
2 changes: 1 addition & 1 deletion Dfe.Academies.Domain/Dfe.Academies.Domain.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Dfe.Academies.Contracts" Version="1.0.5" />
<PackageReference Include="Dfe.Academies.Contracts" Version="1.0.7" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion Dfe.Academies.Domain/Establishment/Establishment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public class Establishment
public string? GORregionCode { get; set; }
public string? ReligiousCharacterCode { get; set; }
public string? ParliamentaryConstituencyCode { get; set; }
public string? PhaseOfEducationCode { get; set; }
public int? PhaseOfEducationCode { get; set; }
public int? SenUnitCapacity { get; set; }
public int? SenUnitOnRoll { get; set; }

Expand Down
2 changes: 1 addition & 1 deletion TramsDataApi.Test/TramsDataApi.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<PackageReference Include="AutoFixture.AutoMoq" Version="4.18.0" />
<PackageReference Include="AutoFixture.Idioms" Version="4.18.0" />
<PackageReference Include="AutoFixture.Xunit2" Version="4.18.0" />
<PackageReference Include="Dfe.Academies.Contracts" Version="1.0.5" />
<PackageReference Include="Dfe.Academies.Contracts" Version="1.0.7" />
<PackageReference Include="FluentAssertions" Version="6.11.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="6.0.19" />
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="7.0.0" />
Expand Down
2 changes: 1 addition & 1 deletion TramsDataApi/TramsDataApi.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="CsvHelper" Version="30.0.1" />
<PackageReference Include="Dfe.Academies.Contracts" Version="1.0.5" />
<PackageReference Include="Dfe.Academies.Contracts" Version="1.0.7" />
<PackageReference Include="Dfe.Academisation.CorrelationIdMiddleware" Version="2.0.2" />
<PackageReference Include="FluentValidation" Version="11.6.0" />
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.21.0" />
Expand Down

0 comments on commit ee54291

Please sign in to comment.