From 616f9487837f7ebb85ca884a6d45410752a8f6c6 Mon Sep 17 00:00:00 2001 From: Owen Date: Thu, 18 Jul 2024 13:41:36 +0100 Subject: [PATCH] Fixed broken test. --- .../Mapping/RequiredPaymentMappingTests.cs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/SFA.DAS.Payments.RequiredPayments.Application.UnitTests/Application/Mapping/RequiredPaymentMappingTests.cs b/src/SFA.DAS.Payments.RequiredPayments.Application.UnitTests/Application/Mapping/RequiredPaymentMappingTests.cs index 6afd6ef32..32f873089 100644 --- a/src/SFA.DAS.Payments.RequiredPayments.Application.UnitTests/Application/Mapping/RequiredPaymentMappingTests.cs +++ b/src/SFA.DAS.Payments.RequiredPayments.Application.UnitTests/Application/Mapping/RequiredPaymentMappingTests.cs @@ -1,9 +1,13 @@ using System; +using System.Collections.Generic; +using System.Diagnostics; using AutoMapper; using FluentAssertions; using NUnit.Framework; using SFA.DAS.Payments.DataLocks.Messages.Events; +using SFA.DAS.Payments.Model.Core; using SFA.DAS.Payments.RequiredPayments.Application.Mapping; +using SFA.DAS.Payments.RequiredPayments.Application.UnitTests.TestHelpers; using SFA.DAS.Payments.RequiredPayments.Domain.Entities; using SFA.DAS.Payments.RequiredPayments.Messages.Events; @@ -64,7 +68,16 @@ public void Maps_AgeAtStartOfLearning_From_PayableEarningEvent_To_CalculatedRequ // Arrange var payableEarningEvent = new PayableEarningEvent { - AgeAtStartOfLearning = 25 + AgeAtStartOfLearning = 25, + LearningAim = EarningEventDataHelper.CreateLearningAim(), + PriceEpisodes = new List + { + new PriceEpisode + { + LearningAimSequenceNumber = 1, + Identifier = "1" + } + } }; var requiredPaymentEvent = Activator.CreateInstance(typeof(CalculatedRequiredCoInvestedAmount)) as CalculatedRequiredOnProgrammeAmount;