Esempio n. 1
0
        override public void Execute()
        {
            DocumentPackage superDuperPackage = PackageBuilder.NewPackageNamed(PackageName)
                                                .DescribedAs("This is a package created using the eSignLive SDK")
                                                .WithSigner(SignerBuilder.NewSignerWithEmail(email1)
                                                            .WithFirstName(FIRST_NAME)
                                                            .WithLastName(LAST_NAME)
                                                            .WithCustomId(signerId)
                                                            .ChallengedWithKnowledgeBasedAuthentication(
                                                                SignerInformationForEquifaxCanadaBuilder.NewSignerInformationForEquifaxCanada()
                                                                .WithFirstName(FIRST_NAME)
                                                                .WithLastName(LAST_NAME)
                                                                .WithStreetAddress(STREET_ADDRESS)
                                                                .WithCity(CITY)
                                                                .WithProvince(PROVINCE)
                                                                .WithPostalCode(POSTAL_CODE)
                                                                .WithTimeAtAddress(TIME_AT_ADDRESS)
                                                                .WithDriversLicenseNumber(DRIVERS_LICENSE_NUMBER)
                                                                .WithSocialInsuranceNumber(SOCIAL_INSURANCE_NUMBER)
                                                                .WithHomePhoneNumber(HOME_PHONE_NUMBER)
                                                                .WithDateOfBirth(DATE_OF_BIRTH)
                                                                .Build()))
                                                .WithDocument(DocumentBuilder.NewDocumentNamed(documentName)
                                                              .FromStream(fileStream1, DocumentType.PDF)
                                                              .WithSignature(SignatureBuilder.SignatureFor(email1)
                                                                             .Build())
                                                              .Build())
                                                .Build();

            packageId = eslClient.CreateAndSendPackage(superDuperPackage);

            retrievedPackage = eslClient.GetPackage(packageId);
        }
        public void BuildWithSpecificValues()
        {
            SignerInformationForEquifaxCanada signerInformationForEquifaxCanada = SignerInformationForEquifaxCanadaBuilder.NewSignerInformationForEquifaxCanada()
                                                                                  .WithFirstName(firstName)
                                                                                  .WithLastName(lastName)
                                                                                  .WithStreetAddress(streetAddress)
                                                                                  .WithCity(city)
                                                                                  .WithProvince(province)
                                                                                  .WithPostalCode(postalCode)
                                                                                  .WithTimeAtAddress(timeAtAddress)
                                                                                  .WithDriversLicenseNumber(driversLicenseNumber)
                                                                                  .WithSocialInsuranceNumber(socialInsuranceNumber)
                                                                                  .WithHomePhoneNumber(homePhoneNumber)
                                                                                  .WithDateOfBirth(dateOfBirth)
                                                                                  .Build();

            Assert.AreEqual(firstName, signerInformationForEquifaxCanada.FirstName);
            Assert.AreEqual(lastName, signerInformationForEquifaxCanada.LastName);
            Assert.AreEqual(streetAddress, signerInformationForEquifaxCanada.StreetAddress);
            Assert.AreEqual(city, signerInformationForEquifaxCanada.City);
            Assert.AreEqual(province, signerInformationForEquifaxCanada.Province);
            Assert.AreEqual(postalCode, signerInformationForEquifaxCanada.PostalCode);
            Assert.AreEqual(socialInsuranceNumber, signerInformationForEquifaxCanada.SocialInsuranceNumber);
            Assert.AreEqual(homePhoneNumber, signerInformationForEquifaxCanada.HomePhoneNumber);
            Assert.AreEqual(dateOfBirth, signerInformationForEquifaxCanada.DateOfBirth);
        }
Esempio n. 3
0
 public SignerBuilder ChallengedWithKnowledgeBasedAuthentication(
     SignerInformationForEquifaxCanadaBuilder signerInformationForEquifaxCanadaBuilder)
 {
     return(ChallengedWithKnowledgeBasedAuthentication(signerInformationForEquifaxCanadaBuilder.Build()));
 }
Esempio n. 4
0
        override public void Execute()
        {
            SIGNER_WITH_AUTHENTICATION_EQUIFAX_CANADA =
                SignerBuilder.NewSignerWithEmail(email1)
                .WithFirstName("Signer1")
                .WithLastName("Canada")
                .WithCustomId("SingerCanadaID")
                .ChallengedWithKnowledgeBasedAuthentication(
                    SignerInformationForEquifaxCanadaBuilder.NewSignerInformationForEquifaxCanada()
                    .WithFirstName("Signer1")
                    .WithLastName("lastNameCanada")
                    .WithStreetAddress("1111")
                    .WithCity("Montreal")
                    .WithProvince("QC")
                    .WithPostalCode("A1A1A1")
                    .WithTimeAtAddress(1)
                    .WithDriversLicenseNumber("Driver licence number")
                    .WithSocialInsuranceNumber("111222333")
                    .WithHomePhoneNumber("5141112222")
                    .WithDateOfBirth(new DateTime(1965, 1, 1)))
                .ChallengedWithQuestions(ChallengeBuilder.FirstQuestion("What's your favorite restaurant? (answer: Staffany)")
                                         .Answer("Staffany")
                                         .SecondQuestion("What sport do you play? (answer: hockey)")
                                         .Answer("hockey"))
                .Build();

            SIGNER_WITH_AUTHENTICATION_EQUIFAX_USA =
                SignerBuilder.NewSignerWithEmail(email2)
                .WithFirstName("Signer2")
                .WithLastName("USA")
                .WithCustomId("SignerUSAID")
                .ChallengedWithKnowledgeBasedAuthentication(
                    SignerInformationForEquifaxUSABuilder.NewSignerInformationForEquifaxUSA()
                    .WithFirstName("Singer2")
                    .WithLastName("lastNameUSA")
                    .WithStreetAddress("2222")
                    .WithCity("New York")
                    .WithState("NY")
                    .WithZip("65212")
                    .WithSocialSecurityNumber("222667098")
                    .WithHomePhoneNumber("8701116547")
                    .WithTimeAtAddress(3)
                    .WithDriversLicenseNumber("Driver License Number")
                    .WithDateOfBirth(new DateTime(1967, 2, 2)))
                .ChallengedWithQuestions(ChallengeBuilder.FirstQuestion("What's your favorite sport? (answer: golf)")
                                         .Answer("golf")
                                         .SecondQuestion("What music instrument do you play? (answer: drums)")
                                         .Answer("drums"))
                .Build();

            DocumentPackage superDuperPackage = PackageBuilder.NewPackageNamed(PackageName)
                                                .DescribedAs("This is a package created using the eSignLive SDK")
                                                .WithSigner(SIGNER_WITH_AUTHENTICATION_EQUIFAX_CANADA)
                                                .WithSigner(SIGNER_WITH_AUTHENTICATION_EQUIFAX_USA)
                                                .WithDocument(DocumentBuilder.NewDocumentNamed(documentName)
                                                              .FromStream(fileStream1, DocumentType.PDF)
                                                              .WithSignature(SignatureBuilder.SignatureFor(email1)
                                                                             .Build())
                                                              .WithSignature(SignatureBuilder.SignatureFor(email2)
                                                                             .Build())
                                                              .Build())
                                                .Build();

            packageId = ossClient.CreateAndSendPackage(superDuperPackage);

            retrievedPackage = ossClient.GetPackage(packageId);
        }
        private Silanis.ESL.SDK.SignerInformationForEquifaxCanada CreateTypicalSDKSignerInformationForEquifaxCanada()
        {
            Silanis.ESL.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);
        }