Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
paullocknimble committed Nov 23, 2023
1 parent ef1679a commit d6f3756
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using Dfe.Academies.Domain.Trust;
using FluentAssertions;
using Moq;
using System.Globalization;

namespace Dfe.Academies.Application.Tests.Queries.Establishment
{
Expand Down Expand Up @@ -160,6 +161,7 @@ public async Task GetByUrns_WhenEstablishmentsReturnedFromRepo_ListOfEstablishme
}
}


private bool HasMappedCorrectly(EstablishmentDto dto, Domain.Establishment.Establishment establishment)
{
return (
Expand Down Expand Up @@ -196,8 +198,8 @@ private bool HasMappedCorrectly(EstablishmentDto dto, Domain.Establishment.Estab
dto.Census.NumberOfPupils == establishment.NumberOfPupils &&
dto.Census.PercentageFsm == establishment.PercentageFSM &&

dto.MISEstablishment.DateOfLatestSection8Inspection == establishment.DateOfLatestShortInspection?.ToString() &&
dto.MISEstablishment.InspectionEndDate == establishment.InspectionEndDate?.ToString() &&
dto.MISEstablishment.DateOfLatestSection8Inspection == establishment.DateOfLatestShortInspection?.ToString(new CultureInfo("en-GB")) &&
dto.MISEstablishment.InspectionEndDate == establishment.InspectionEndDate?.ToString(new CultureInfo("en-GB")) &&
dto.MISEstablishment.OverallEffectiveness == establishment.OverallEffectiveness?.ToString() &&
dto.MISEstablishment.QualityOfEducation == establishment.QualityOfEducation?.ToString() &&
dto.MISEstablishment.BehaviourAndAttitudes == establishment.BehaviourAndAttitudes?.ToString() &&
Expand Down

0 comments on commit d6f3756

Please sign in to comment.