first commit

This commit is contained in:
Zeeshaun
2026-03-11 11:18:25 -05:00
commit f3cb730f3b
472 changed files with 53651 additions and 0 deletions
@@ -0,0 +1,28 @@
using System.Xml.Linq;
using Xunit;
using CRIF.ACTion.Decisioning;
using Landmark.OLA.Models.Decisioning.Enums;
namespace CRIF.ACTion.Tests.Decisioning
{
public class DecisioningStateResponseParserTest
{
private readonly string LoanApplicationId = "1200400";
[Fact]
public void SendToDecisioningResponse()
{
string successResponsePath = "ExampleXML" + System.IO.Path.DirectorySeparatorChar + "SendToDecisioningParser" + System.IO.Path.DirectorySeparatorChar + "SuccessResponse.xml";
var successResponse = (XElement)XDocument.Load(successResponsePath).FirstNode;
var parser = new DecisioningStateResponseParser();
parser.SetLoanId(LoanApplicationId);
var result = parser.Parse(successResponse);
Assert.Equal(DecisioningState.Requested, result);
}
}
}