Skip to content

Commit

Permalink
Merge pull request #319 from SkillsFundingAgency/PA-378-fix-EncodedPl…
Browse files Browse the repository at this point in the history
…edgeApplicationId-being-dropped

PA-378 Mapped EncodedPledgeApplicationId in SelectCourse and SelectDelivery Models so it's not lost
  • Loading branch information
SreekanthBadigenchula authored Jun 21, 2022
2 parents 232248f + 86a01ac commit aba4248
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,12 @@ public void TransferSenderIdIsMappedCorrectly()
{
Assert.AreEqual(_source.TransferSenderId, _result.TransferSenderId);
}

[Test]
public void EncodedPledgeApplicationIdIsMappedCorrectly()
{
Assert.AreEqual(_source.EncodedPledgeApplicationId, _result.EncodedPledgeApplicationId);
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,12 @@ public void TransferSenderIdIsMappedCorrectly()
{
Assert.AreEqual(_source.TransferSenderId, _result.TransferSenderId);
}

[Test]
public void EncodedPledgeApplicationIdIsMappedCorrectly()
{
Assert.AreEqual(_source.EncodedPledgeApplicationId, _result.EncodedPledgeApplicationId);
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public Task<ApprenticeRequest> Map(SelectCourseViewModel source)
ReservationId = source.ReservationId,
StartMonthYear = source.StartMonthYear,
TransferSenderId = source.TransferSenderId,
EncodedPledgeApplicationId = source.EncodedPledgeApplicationId,
});
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public Task<ApprenticeRequest> Map(SelectDeliveryModelViewModel source)
ReservationId = source.ReservationId,
StartMonthYear = source.StartMonthYear,
TransferSenderId = source.TransferSenderId,
EncodedPledgeApplicationId = source.EncodedPledgeApplicationId,
});
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ public class SelectCourseViewModel : IAuthorizationContextModel
public string StartMonthYear { get; set; }
public DeliveryModel? DeliveryModel { get; set; }
public string TransferSenderId { get; set; }
public string EncodedPledgeApplicationId { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,7 @@ public class SelectDeliveryModelViewModel
public DeliveryModel? DeliveryModel { get; set; }
public DeliveryModel[] DeliveryModels { get; set; }
public string TransferSenderId { get; set; }
public string EncodedPledgeApplicationId { get; set; }

}
}

0 comments on commit aba4248

Please sign in to comment.