41 lines
1.2 KiB
C#
41 lines
1.2 KiB
C#
using System;
|
|
using Xunit;
|
|
using CRIF.ACTion.Common;
|
|
using CRIF.ACTion.Loan.Individuals;
|
|
using Landmark.OLA.Models.Addresses.Enums;
|
|
using Landmark.OLA.Models.Residences;
|
|
|
|
namespace CRIF.ACTion.Tests.Loan.Individuals
|
|
{
|
|
public class AddressesSectionTest
|
|
{
|
|
public ResidenceAddress ValidAddress = new(new Guid("a333a064-be7b-4d20-841f-9c3c306866b3"))
|
|
{
|
|
Address1 = "123 Main St",
|
|
City = "New Berlin",
|
|
State = StateOption.WI,
|
|
Country = CountryOption.UnitedStates,
|
|
PostalCode = "53151",
|
|
MonthsResided = 12,
|
|
ResidenceType = ResidenceTypeOption.Own,
|
|
};
|
|
|
|
|
|
[Fact]
|
|
public void AddAddress()
|
|
{
|
|
var section = new AddressesSection("", TestCommon.GetTestSettings());
|
|
|
|
section.AddAddress(ValidAddress, ContactMechanisms.CrifContactMechanism.CurrentAddress);
|
|
|
|
var addressElement = section.Build();
|
|
|
|
var result = TestCommon.Compare(addressElement,
|
|
"ExampleXML" + System.IO.Path.DirectorySeparatorChar + "AddressesSection"
|
|
+ System.IO.Path.DirectorySeparatorChar + "AddAddress.xml");
|
|
|
|
Assert.Empty(result);
|
|
}
|
|
}
|
|
}
|