public void ConvertAPIToAPI() { apiSignerInformationForEquifaxUSA1 = CreateTypicalAPISignerInformationForEquifaxUSA(); apiSignerInformationForEquifaxUSA2 = new SignerInformationForEquifaxUSAConverter(apiSignerInformationForEquifaxUSA1).ToAPISignerInformationForEquifaxUSA(); Assert.IsNotNull(apiSignerInformationForEquifaxUSA2); Assert.AreEqual(apiSignerInformationForEquifaxUSA2, apiSignerInformationForEquifaxUSA1); }
public void ConvertSDKToAPI() { sdkSignerInformationForEquifaxUSA1 = CreateTypicalSDKSignerInformationForEquifaxUSA(); apiSignerInformationForEquifaxUSA1 = new SignerInformationForEquifaxUSAConverter(sdkSignerInformationForEquifaxUSA1).ToAPISignerInformationForEquifaxUSA(); Assert.AreEqual(apiSignerInformationForEquifaxUSA1.FirstName, sdkSignerInformationForEquifaxUSA1.FirstName); Assert.AreEqual(apiSignerInformationForEquifaxUSA1.LastName, sdkSignerInformationForEquifaxUSA1.LastName); Assert.AreEqual(apiSignerInformationForEquifaxUSA1.StreetAddress, sdkSignerInformationForEquifaxUSA1.StreetAddress); Assert.AreEqual(apiSignerInformationForEquifaxUSA1.City, sdkSignerInformationForEquifaxUSA1.City); Assert.AreEqual(apiSignerInformationForEquifaxUSA1.State, sdkSignerInformationForEquifaxUSA1.State); Assert.AreEqual(apiSignerInformationForEquifaxUSA1.Zip, sdkSignerInformationForEquifaxUSA1.Zip); Assert.AreEqual(apiSignerInformationForEquifaxUSA1.SocialSecurityNumber, sdkSignerInformationForEquifaxUSA1.SocialSecurityNumber); Assert.AreEqual(apiSignerInformationForEquifaxUSA1.HomePhoneNumber, sdkSignerInformationForEquifaxUSA1.HomePhoneNumber); Assert.AreEqual(apiSignerInformationForEquifaxUSA1.DateOfBirth, sdkSignerInformationForEquifaxUSA1.DateOfBirth); }
private OneSpanSign.API.SignerInformationForEquifaxUSA CreateTypicalAPISignerInformationForEquifaxUSA() { OneSpanSign.API.SignerInformationForEquifaxUSA SignerInformationForEquifaxUSA = new OneSpanSign.API.SignerInformationForEquifaxUSA(); SignerInformationForEquifaxUSA.FirstName = "first name"; SignerInformationForEquifaxUSA.LastName = "last name"; SignerInformationForEquifaxUSA.StreetAddress = "1234 main street"; SignerInformationForEquifaxUSA.City = "Montreal"; SignerInformationForEquifaxUSA.State = "Quebec"; SignerInformationForEquifaxUSA.Zip = "1h27r4"; SignerInformationForEquifaxUSA.SocialSecurityNumber = "222-099-888-333"; SignerInformationForEquifaxUSA.HomePhoneNumber = "877-098-0974"; SignerInformationForEquifaxUSA.TimeAtAddress = 3; SignerInformationForEquifaxUSA.DriversLicenseNumber = "97262872628463282"; SignerInformationForEquifaxUSA.DateOfBirth = new DateTime(); return(SignerInformationForEquifaxUSA); }
/// <summary> /// Convert from SDK SignerInformationForEquifaxUSA to API SignerInformationForEquifaxUSA. /// </summary> /// <returns>The API attachment requirement.</returns> public OneSpanSign.API.SignerInformationForEquifaxUSA ToAPISignerInformationForEquifaxUSA() { if (sdkSignerInformationForEquifaxUSA == null) { return(apiSignerInformationForEquifaxUSA); } OneSpanSign.API.SignerInformationForEquifaxUSA result = new OneSpanSign.API.SignerInformationForEquifaxUSA(); result.FirstName = sdkSignerInformationForEquifaxUSA.FirstName; result.LastName = sdkSignerInformationForEquifaxUSA.LastName; result.StreetAddress = sdkSignerInformationForEquifaxUSA.StreetAddress; result.City = sdkSignerInformationForEquifaxUSA.City; result.State = sdkSignerInformationForEquifaxUSA.State; result.Zip = sdkSignerInformationForEquifaxUSA.Zip; result.SocialSecurityNumber = sdkSignerInformationForEquifaxUSA.SocialSecurityNumber; result.HomePhoneNumber = sdkSignerInformationForEquifaxUSA.HomePhoneNumber; result.TimeAtAddress = sdkSignerInformationForEquifaxUSA.TimeAtAddress; result.DriversLicenseNumber = sdkSignerInformationForEquifaxUSA.DriversLicenseNumber; result.DateOfBirth = sdkSignerInformationForEquifaxUSA.DateOfBirth; return(result); }
/// <summary> /// Construct with API SignerInformationForEquifaxUSA object involved in conversion. /// </summary> /// <param name="apiSignerInformationForEquifaxUSA">API attachment requirement.</param> public SignerInformationForEquifaxUSAConverter(OneSpanSign.API.SignerInformationForEquifaxUSA apiSignerInformationForEquifaxUSA) { this.apiSignerInformationForEquifaxUSA = apiSignerInformationForEquifaxUSA; }
public void ConvertNullAPIToAPI() { apiSignerInformationForEquifaxUSA1 = null; converter = new SignerInformationForEquifaxUSAConverter(apiSignerInformationForEquifaxUSA1); Assert.IsNull(converter.ToAPISignerInformationForEquifaxUSA()); }