diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions.Data/Models/AdvisoryBoardDecision/AdvisoryBoardDecision.cs b/Dfe.PrepareConversions/Dfe.PrepareConversions.Data/Models/AdvisoryBoardDecision/AdvisoryBoardDecision.cs index 99c887ae8..07faaaa51 100644 --- a/Dfe.PrepareConversions/Dfe.PrepareConversions.Data/Models/AdvisoryBoardDecision/AdvisoryBoardDecision.cs +++ b/Dfe.PrepareConversions/Dfe.PrepareConversions.Data/Models/AdvisoryBoardDecision/AdvisoryBoardDecision.cs @@ -11,6 +11,7 @@ public AdvisoryBoardDecision() { DeferredReasons = new List(); DeclinedReasons = new List(); + WithdrawnReasons = new List(); } public int AdvisoryBoardDecisionId { get; set; } diff --git a/Dfe.PrepareConversions/Dfe.PrepareConversions/Utils/ProjectListHelper.cs b/Dfe.PrepareConversions/Dfe.PrepareConversions/Utils/ProjectListHelper.cs index b826e2a2a..876bb26d9 100644 --- a/Dfe.PrepareConversions/Dfe.PrepareConversions/Utils/ProjectListHelper.cs +++ b/Dfe.PrepareConversions/Dfe.PrepareConversions/Utils/ProjectListHelper.cs @@ -65,6 +65,7 @@ public static ProjectStatus MapProjectStatus(string status) const string yellow = nameof(yellow); const string orange = nameof(orange); const string red = nameof(red); + const string purple = nameof(purple); if (Enum.TryParse(status, out AdvisoryBoardDecisions result)) { @@ -73,6 +74,7 @@ public static ProjectStatus MapProjectStatus(string status) AdvisoryBoardDecisions.Approved => new ProjectStatus(result.ToString().ToUpper(), green), AdvisoryBoardDecisions.Deferred => new ProjectStatus(result.ToString().ToUpper(), orange), AdvisoryBoardDecisions.Declined => new ProjectStatus(result.ToString().ToUpper(), red), + AdvisoryBoardDecisions.Withdrawn => new ProjectStatus(result.ToString().ToUpper(), purple), _ => new ProjectStatus(result.ToString().ToUpper(), yellow) }; }