public void ConvertSDKToSDK()
        {
            sdkSignerInformationForEquifaxUSA1 = CreateTypicalSDKSignerInformationForEquifaxUSA();
            sdkSignerInformationForEquifaxUSA2 = new SignerInformationForEquifaxUSAConverter(sdkSignerInformationForEquifaxUSA1).ToSDKSignerInformationForEquifaxUSA();

            Assert.IsNotNull(sdkSignerInformationForEquifaxUSA2);
            Assert.AreEqual(sdkSignerInformationForEquifaxUSA2, sdkSignerInformationForEquifaxUSA1);
        }
        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 Silanis.ESL.SDK.SignerInformationForEquifaxUSA CreateTypicalSDKSignerInformationForEquifaxUSA()
        {
            Silanis.ESL.SDK.SignerInformationForEquifaxUSA SignerInformationForEquifaxUSA = SignerInformationForEquifaxUSABuilder.NewSignerInformationForEquifaxUSA()
                                                                                            .WithFirstName("Signer First Name")
                                                                                            .WithLastName("Last Name")
                                                                                            .WithStreetAddress("main street")
                                                                                            .WithCity("Montreal")
                                                                                            .WithState("Quebec")
                                                                                            .WithZip("H4L3K1")
                                                                                            .WithSocialSecurityNumber("111-222-333-444")
                                                                                            .WithHomePhoneNumber("1-800-123-8763")
                                                                                            .WithDateOfBirth(new DateTime())
                                                                                            .WithDriversLicenseNumber("98826278262728262")
                                                                                            .WithTimeAtAddress(2)
                                                                                            .Build();

            return(SignerInformationForEquifaxUSA);
        }
Example #4
0
        public SignerInformationForEquifaxUSA Build()
        {
            SignerInformationForEquifaxUSA result = new SignerInformationForEquifaxUSA();

            result.FirstName            = firstName;
            result.LastName             = lastName;
            result.StreetAddress        = streetAddress;
            result.City                 = city;
            result.State                = state;
            result.Zip                  = zip;
            result.SocialSecurityNumber = socialSecurityNumber;
            result.HomePhoneNumber      = homePhoneNumber;
            result.DriversLicenseNumber = driversLicenseNumber;
            result.TimeAtAddress        = timeAtAddress;
            result.DateOfBirth          = dateOfBirth;

            return(result);
        }
 public void ConvertNullSDKToSDK()
 {
     sdkSignerInformationForEquifaxUSA1 = null;
     converter = new SignerInformationForEquifaxUSAConverter(sdkSignerInformationForEquifaxUSA1);
     Assert.IsNull(converter.ToSDKSignerInformationForEquifaxUSA());
 }