first commit
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
using System;
|
||||
using System.Text;
|
||||
using Xunit;
|
||||
using CRIF.ACTion.Files;
|
||||
using Landmark.OLA.Models.Loan;
|
||||
|
||||
namespace CRIF.ACTion.Tests.Loan
|
||||
{
|
||||
public class FileRequestBuilderTest
|
||||
{
|
||||
private readonly LoanApplicationFile appFile = new LoanApplicationFile("12345", new Guid("b734f50d-d83e-41e9-af19-7291d9cc0622"), "test.txt", "test", "0", "Proof of Income");
|
||||
private readonly string fileBase64Value = Convert.ToBase64String(Encoding.ASCII.GetBytes("test"));
|
||||
|
||||
[Fact]
|
||||
public void Validate()
|
||||
{
|
||||
var createAppElement = new FileRequestBuilder("12345", appFile, fileBase64Value, TestCommon.GetTestSettings()).Build();
|
||||
|
||||
Assert.Empty(TestCommon.Validate(createAppElement));
|
||||
}
|
||||
|
||||
|
||||
[Fact]
|
||||
public void CompareFileRequestXML()
|
||||
{
|
||||
var createAppElement = new FileRequestBuilder("12345", appFile, fileBase64Value, TestCommon.GetTestSettings()).Build();
|
||||
|
||||
string comparePath = "ExampleXML" + System.IO.Path.DirectorySeparatorChar + "AddAppFilesSection" + System.IO.Path.DirectorySeparatorChar + "AddAppFiles.xml";
|
||||
|
||||
var results = TestCommon.Compare(createAppElement, comparePath);
|
||||
|
||||
Assert.Empty(results);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user