Files
monorepo/LCU.API.Internal.OnlineLoanApp/CRIF.ACTion.Tests/Loan/AppDetailBankcardSectionTest.cs
T
2026-03-11 11:18:25 -05:00

36 lines
1.1 KiB
C#

using System;
using Xunit;
using CRIF.ACTion.Loan;
using Landmark.OLA.Models.Loan;
using Landmark.OLA.Models.Loan.Enums;
namespace CRIF.ACTion.Tests.Loan
{
public class AppDetailBankcardSectionTest
{
[Fact]
public void SetAsStudentCcProduct()
{
var section = new AppDetailBankcardSection("", TestCommon.GetTestSettings());
var loanApplication = new LoanApplication
{
LoanType = LoanType.CC_Student,
Purpose = LoanPurpose.Purpose.Other,
RequestedAmount = 100,
PrimaryContactMethod = "1234567890"
};
section.SetDetails(loanApplication, channelRef: new Guid("8066fa2a-16ba-4148-b28c-2926ba263c5f"));
var cashBackCcElement = section.Build();
var result = TestCommon.Compare(cashBackCcElement,
"ExampleXML" + System.IO.Path.DirectorySeparatorChar + "AppDetailsSection"
+ System.IO.Path.DirectorySeparatorChar + "SetAsStudentCcProduct.xml");
Assert.Empty(result);
}
}
}