diff --git a/src/SFA.DAS.Commitments.Infrastructure.UnitTests/Services/ApprenticeshipInfoServiceMapperTests/WhenIMapAFramework.cs b/src/SFA.DAS.Commitments.Infrastructure.UnitTests/Services/ApprenticeshipInfoServiceMapperTests/WhenIMapAFramework.cs index 4459edf3ef..80ce0cc8fd 100644 --- a/src/SFA.DAS.Commitments.Infrastructure.UnitTests/Services/ApprenticeshipInfoServiceMapperTests/WhenIMapAFramework.cs +++ b/src/SFA.DAS.Commitments.Infrastructure.UnitTests/Services/ApprenticeshipInfoServiceMapperTests/WhenIMapAFramework.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Generic; -using KellermanSoftware.CompareNetObjects; using NUnit.Framework; using SFA.DAS.Apprenticeships.Api.Types; using SFA.DAS.Commitments.Infrastructure.Services; @@ -75,12 +74,7 @@ public void ThenFundingPeriodsAreMappedCorrectly() var result = _mapper.MapFrom(new List { TestHelper.Clone(_framework) }); //Assert - var comparer = new CompareLogic(new ComparisonConfig - { - IgnoreObjectTypes = true - }); - - Assert.IsTrue(comparer.Compare(result.Frameworks[0].FundingPeriods, _framework.FundingPeriods).AreEqual); + Assert.IsTrue(TestHelper.EnumerablesAreEqual(_framework.FundingPeriods, result.Frameworks[0].FundingPeriods)); } [Test]