public void ConvertSDKToSDK()
        {
            sdkSignerInformationForEquifaxCanada1 = CreateTypicalSDKSignerInformationForEquifaxCanada();
            sdkSignerInformationForEquifaxCanada2 = new SignerInformationForEquifaxCanadaConverter(sdkSignerInformationForEquifaxCanada1).ToSDKSignerInformationForEquifaxCanada();

            Assert.IsNotNull(sdkSignerInformationForEquifaxCanada2);
            Assert.AreEqual(sdkSignerInformationForEquifaxCanada2, sdkSignerInformationForEquifaxCanada1);
        }
        public void ConvertSDKToAPI()
        {
            sdkSignerInformationForEquifaxCanada1 = CreateTypicalSDKSignerInformationForEquifaxCanada();
            apiSignerInformationForEquifaxCanada1 = new SignerInformationForEquifaxCanadaConverter(sdkSignerInformationForEquifaxCanada1).ToAPISignerInformationForEquifaxCanada();

            Assert.AreEqual(apiSignerInformationForEquifaxCanada1.FirstName, sdkSignerInformationForEquifaxCanada1.FirstName);
            Assert.AreEqual(apiSignerInformationForEquifaxCanada1.LastName, sdkSignerInformationForEquifaxCanada1.LastName);
            Assert.AreEqual(apiSignerInformationForEquifaxCanada1.StreetAddress, sdkSignerInformationForEquifaxCanada1.StreetAddress);
            Assert.AreEqual(apiSignerInformationForEquifaxCanada1.City, sdkSignerInformationForEquifaxCanada1.City);
            Assert.AreEqual(apiSignerInformationForEquifaxCanada1.Province, sdkSignerInformationForEquifaxCanada1.Province);
            Assert.AreEqual(apiSignerInformationForEquifaxCanada1.PostalCode, sdkSignerInformationForEquifaxCanada1.PostalCode);
            Assert.AreEqual(apiSignerInformationForEquifaxCanada1.TimeAtAddress, sdkSignerInformationForEquifaxCanada1.TimeAtAddress);
            Assert.AreEqual(apiSignerInformationForEquifaxCanada1.DriversLicenseNumber, sdkSignerInformationForEquifaxCanada1.DriversLicenseNumber);
            Assert.AreEqual(apiSignerInformationForEquifaxCanada1.SocialInsuranceNumber, sdkSignerInformationForEquifaxCanada1.SocialInsuranceNumber);
            Assert.AreEqual(apiSignerInformationForEquifaxCanada1.HomePhoneNumber, sdkSignerInformationForEquifaxCanada1.HomePhoneNumber);
            Assert.AreEqual(apiSignerInformationForEquifaxCanada1.DateOfBirth, sdkSignerInformationForEquifaxCanada1.DateOfBirth);
        }
        public SignerInformationForEquifaxCanada Build()
        {
            SignerInformationForEquifaxCanada result = new SignerInformationForEquifaxCanada();

            result.FirstName             = firstName;
            result.LastName              = lastName;
            result.StreetAddress         = streetAddress;
            result.City                  = city;
            result.Province              = province;
            result.PostalCode            = postalCode;
            result.TimeAtAddress         = timeAtAddress;
            result.DriversLicenseNumber  = driversLicenseNumber;
            result.SocialInsuranceNumber = socialInsuranceNumber;
            result.HomePhoneNumber       = homePhoneNumber;
            result.DateOfBirth           = dateOfBirth;

            return(result);
        }
        private OneSpanSign.Sdk.SignerInformationForEquifaxCanada CreateTypicalSDKSignerInformationForEquifaxCanada()
        {
            OneSpanSign.Sdk.SignerInformationForEquifaxCanada SignerInformationForEquifaxCanada = SignerInformationForEquifaxCanadaBuilder.NewSignerInformationForEquifaxCanada()
                                                                                                  .WithFirstName("Signer First Name")
                                                                                                  .WithLastName("Last Name")
                                                                                                  .WithStreetAddress("main street")
                                                                                                  .WithCity("Montreal")
                                                                                                  .WithProvince("Quebec")
                                                                                                  .WithPostalCode("H4L3K1")
                                                                                                  .WithTimeAtAddress(1)
                                                                                                  .WithDriversLicenseNumber("Driver's licence")
                                                                                                  .WithSocialInsuranceNumber("111-222-333-444")
                                                                                                  .WithHomePhoneNumber("1-800-123-8763")
                                                                                                  .WithDateOfBirth(new DateTime())
                                                                                                  .Build();

            return(SignerInformationForEquifaxCanada);
        }
 public void ConvertNullSDKToSDK()
 {
     sdkSignerInformationForEquifaxCanada1 = null;
     converter = new SignerInformationForEquifaxCanadaConverter(sdkSignerInformationForEquifaxCanada1);
     Assert.IsNull(converter.ToSDKSignerInformationForEquifaxCanada());
 }