public void VerifyResult() { MixedSignerAuthenticationExample example = new MixedSignerAuthenticationExample(Props.GetInstance()); example.Run(); DocumentPackage documentPackage = example.RetrievedPackage; Signer canadianSigner = documentPackage.Signers[example.SIGNER_WITH_AUTHENTICATION_EQUIFAX_CANADA.Email]; SignerInformationForEquifaxCanada canadianSignerInformationForEquifaxCanada = canadianSigner.KnowledgeBasedAuthentication.SignerInformationForEquifaxCanada; Assert.AreEqual(canadianSignerInformationForEquifaxCanada.FirstName, example.SIGNER_WITH_AUTHENTICATION_EQUIFAX_CANADA.KnowledgeBasedAuthentication.SignerInformationForEquifaxCanada.FirstName); Assert.AreEqual(canadianSignerInformationForEquifaxCanada.LastName, example.SIGNER_WITH_AUTHENTICATION_EQUIFAX_CANADA.KnowledgeBasedAuthentication.SignerInformationForEquifaxCanada.LastName); Assert.AreEqual(canadianSignerInformationForEquifaxCanada.StreetAddress, example.SIGNER_WITH_AUTHENTICATION_EQUIFAX_CANADA.KnowledgeBasedAuthentication.SignerInformationForEquifaxCanada.StreetAddress); Assert.AreEqual(canadianSignerInformationForEquifaxCanada.City, example.SIGNER_WITH_AUTHENTICATION_EQUIFAX_CANADA.KnowledgeBasedAuthentication.SignerInformationForEquifaxCanada.City); Assert.AreEqual(canadianSignerInformationForEquifaxCanada.Province, example.SIGNER_WITH_AUTHENTICATION_EQUIFAX_CANADA.KnowledgeBasedAuthentication.SignerInformationForEquifaxCanada.Province); Assert.AreEqual(canadianSignerInformationForEquifaxCanada.PostalCode, example.SIGNER_WITH_AUTHENTICATION_EQUIFAX_CANADA.KnowledgeBasedAuthentication.SignerInformationForEquifaxCanada.PostalCode); Assert.AreEqual(canadianSignerInformationForEquifaxCanada.TimeAtAddress, example.SIGNER_WITH_AUTHENTICATION_EQUIFAX_CANADA.KnowledgeBasedAuthentication.SignerInformationForEquifaxCanada.TimeAtAddress); Assert.AreEqual(canadianSignerInformationForEquifaxCanada.DriversLicenseNumber, example.SIGNER_WITH_AUTHENTICATION_EQUIFAX_CANADA.KnowledgeBasedAuthentication.SignerInformationForEquifaxCanada.DriversLicenseNumber); Assert.AreEqual(canadianSignerInformationForEquifaxCanada.SocialInsuranceNumber, example.SIGNER_WITH_AUTHENTICATION_EQUIFAX_CANADA.KnowledgeBasedAuthentication.SignerInformationForEquifaxCanada.SocialInsuranceNumber); Assert.AreEqual(canadianSignerInformationForEquifaxCanada.HomePhoneNumber, example.SIGNER_WITH_AUTHENTICATION_EQUIFAX_CANADA.KnowledgeBasedAuthentication.SignerInformationForEquifaxCanada.HomePhoneNumber); Assert.AreEqual(canadianSignerInformationForEquifaxCanada.DateOfBirth, example.SIGNER_WITH_AUTHENTICATION_EQUIFAX_CANADA.KnowledgeBasedAuthentication.SignerInformationForEquifaxCanada.DateOfBirth); // Note that for security reasons, the backend doesn't return challenge answers, so we don't verify the answers here. foreach (Challenge challenge in canadianSigner.ChallengeQuestion) { Assert.IsTrue(String.Equals(challenge.Question, example.SIGNER_WITH_AUTHENTICATION_EQUIFAX_CANADA.ChallengeQuestion[0].Question) || String.Equals(challenge.Question, example.SIGNER_WITH_AUTHENTICATION_EQUIFAX_CANADA.ChallengeQuestion[1].Question)); } Signer usaSigner = documentPackage.Signers[example.SIGNER_WITH_AUTHENTICATION_EQUIFAX_USA.Email]; SignerInformationForEquifaxUSA usaSignerInformationForEquifaxUSA = usaSigner.KnowledgeBasedAuthentication.SignerInformationForEquifaxUSA; Assert.AreEqual(usaSignerInformationForEquifaxUSA.FirstName, example.SIGNER_WITH_AUTHENTICATION_EQUIFAX_USA.KnowledgeBasedAuthentication.SignerInformationForEquifaxUSA.FirstName); Assert.AreEqual(usaSignerInformationForEquifaxUSA.LastName, example.SIGNER_WITH_AUTHENTICATION_EQUIFAX_USA.KnowledgeBasedAuthentication.SignerInformationForEquifaxUSA.LastName); Assert.AreEqual(usaSignerInformationForEquifaxUSA.StreetAddress, example.SIGNER_WITH_AUTHENTICATION_EQUIFAX_USA.KnowledgeBasedAuthentication.SignerInformationForEquifaxUSA.StreetAddress); Assert.AreEqual(usaSignerInformationForEquifaxUSA.City, example.SIGNER_WITH_AUTHENTICATION_EQUIFAX_USA.KnowledgeBasedAuthentication.SignerInformationForEquifaxUSA.City); Assert.AreEqual(usaSignerInformationForEquifaxUSA.State, example.SIGNER_WITH_AUTHENTICATION_EQUIFAX_USA.KnowledgeBasedAuthentication.SignerInformationForEquifaxUSA.State); Assert.AreEqual(usaSignerInformationForEquifaxUSA.Zip, example.SIGNER_WITH_AUTHENTICATION_EQUIFAX_USA.KnowledgeBasedAuthentication.SignerInformationForEquifaxUSA.Zip); Assert.AreEqual(usaSignerInformationForEquifaxUSA.SocialSecurityNumber, example.SIGNER_WITH_AUTHENTICATION_EQUIFAX_USA.KnowledgeBasedAuthentication.SignerInformationForEquifaxUSA.SocialSecurityNumber); Assert.AreEqual(usaSignerInformationForEquifaxUSA.HomePhoneNumber, example.SIGNER_WITH_AUTHENTICATION_EQUIFAX_USA.KnowledgeBasedAuthentication.SignerInformationForEquifaxUSA.HomePhoneNumber); Assert.AreEqual(usaSignerInformationForEquifaxUSA.DateOfBirth, example.SIGNER_WITH_AUTHENTICATION_EQUIFAX_USA.KnowledgeBasedAuthentication.SignerInformationForEquifaxUSA.DateOfBirth); Assert.AreEqual(usaSignerInformationForEquifaxUSA.TimeAtAddress, example.SIGNER_WITH_AUTHENTICATION_EQUIFAX_USA.KnowledgeBasedAuthentication.SignerInformationForEquifaxUSA.TimeAtAddress); Assert.AreEqual(usaSignerInformationForEquifaxUSA.DriversLicenseNumber, example.SIGNER_WITH_AUTHENTICATION_EQUIFAX_USA.KnowledgeBasedAuthentication.SignerInformationForEquifaxUSA.DriversLicenseNumber); foreach (Challenge challenge in usaSigner.ChallengeQuestion) { Assert.IsTrue(String.Equals(challenge.Question, example.SIGNER_WITH_AUTHENTICATION_EQUIFAX_USA.ChallengeQuestion[0].Question) || String.Equals(challenge.Question, example.SIGNER_WITH_AUTHENTICATION_EQUIFAX_USA.ChallengeQuestion[1].Question)); } }
public static void Main(string[] args) { new ContactsExample(Props.GetInstance()).Run(); }
public static void Main(string[] args) { new GetCompletedPackagesWithinDateRangeExample(Props.GetInstance()).Run(); }
public static void Main(string[] args) { new BrandingBarConfigurationExample(Props.GetInstance()).Run(); }
public static void Main(string[] args) { new DocumentPackageAttributesExample(Props.GetInstance()).Run(); }
public static void Main(string[] args) { new DocumentLayoutExample(Props.GetInstance()).Run(); }
public static void Main(string[] args) { new DeletePackageExample(Props.GetInstance()).Run(); }
public void VerifyResult() { CreatePackageFromTemplateExample example = new CreatePackageFromTemplateExample(Props.GetInstance()); example.Run(); DocumentPackage documentPackage = example.RetrievedPackage; Document document = documentPackage.Documents[example.DOCUMENT_NAME]; Assert.AreEqual(document.Name, example.DOCUMENT_NAME); Assert.AreEqual(document.Id, example.DOCUMENT_ID); Assert.AreEqual(documentPackage.Name, example.PACKAGE_NAME); Assert.AreEqual(documentPackage.Description, example.PACKAGE_DESCRIPTION); Assert.AreEqual(documentPackage.EmailMessage, example.PACKAGE_EMAIL_MESSAGE2); Assert.AreEqual(documentPackage.Signers.Count, 3); Assert.AreEqual(documentPackage.Signers[example.email1].FirstName, example.PACKAGE_SIGNER1_FIRST); Assert.AreEqual(documentPackage.Signers[example.email1].LastName, example.PACKAGE_SIGNER1_LAST); Assert.AreEqual(documentPackage.Signers[example.email2].FirstName, example.PACKAGE_SIGNER2_FIRST); Assert.AreEqual(documentPackage.Signers[example.email2].LastName, example.PACKAGE_SIGNER2_LAST); // TODO: Make sure that this is correctly preserved. // Assert.IsFalse(documentPackage.Settings.EnableInPerson.Value); Assert.IsFalse(documentPackage.Settings.EnableDecline.Value); Assert.IsFalse(documentPackage.Settings.EnableOptOut.Value); Assert.IsFalse(documentPackage.Settings.HideWatermark.Value); }
public static void Main(string[] args) { new SignerSMSAuthenticationExample(Props.GetInstance()).Run(); }
public static void Main(string[] args) { new FieldValidationExample(Props.GetInstance()).Run(); }
public void VerifyResult() { EventNotificationRegistrationExample example = new EventNotificationRegistrationExample(Props.GetInstance()); example.Run(); EventNotificationConfig eventNotificationConfig = example.EventNotificationConfig; Assert.IsNotNull(eventNotificationConfig); Assert.AreEqual(eventNotificationConfig.Url, example.URL); Assert.AreEqual(eventNotificationConfig.NotificationEvents.Count, 18); List <NotificationEvent> eventList = new List <NotificationEvent>(); eventList.Add(example.EVENT1); eventList.Add(example.EVENT2); eventList.Add(example.EVENT3); eventList.Add(example.EVENT4); eventList.Add(example.EVENT5); eventList.Add(example.EVENT6); eventList.Add(example.EVENT7); eventList.Add(example.EVENT8); eventList.Add(example.EVENT9); eventList.Add(example.EVENT10); eventList.Add(example.EVENT11); eventList.Add(example.EVENT12); eventList.Add(example.EVENT13); eventList.Add(example.EVENT14); eventList.Add(example.EVENT15); eventList.Add(example.EVENT16); eventList.Add(example.EVENT17); eventList.Add(example.EVENT18); foreach (NotificationEvent notificationEvent in eventList) { bool found = false; foreach (NotificationEvent receivedEvent in eventNotificationConfig.NotificationEvents) { if (receivedEvent.ToString().Equals(notificationEvent.ToString())) { found = true; break; } } Assert.IsTrue(found, "Callback has wrong event for EVENT" + (eventList.IndexOf(notificationEvent) + 1)); } }
public static void Main(string[] args) { new SignerInformationForEquifaxCanadaExample(Props.GetInstance()).Run(); }
public static void Main(string[] args) { new DownloadCompletionAndUsageReportExample(Props.GetInstance()).Run(); }
public static void Main(string[] args) { new PackageLanguageConfigurationExample(Props.GetInstance()).Run(); }
public void VerifyResult() { SignerManipulationExample example = new SignerManipulationExample(Props.GetInstance()); example.Run(); }
public static void Main(string[] args) { new GetGroupSummariesExample(Props.GetInstance()).Run(); }
public static void Main(string[] args) { new ReminderExample(Props.GetInstance()).Run(); }
public static void Main(string[] args) { new CustomFieldExample(Props.GetInstance()).Run(); }
public static void Main(string[] args) { new UserAuthenticationTokenExample(Props.GetInstance()).Run(); }
public static void Main(string[] args) { new BasicPackageCreationExample(Props.GetInstance()).Run(); }
public static void Main(string[] args) { new QRCodeExample(Props.GetInstance()).Run(); }
public static void Main(string[] args) { new GroupManagementExample(Props.GetInstance()).Run(); }
public static void Main(string[] args) { new TextAnchorExtractionExample(Props.GetInstance()).Run(); }
public void VerifyResult() { SigningRedirectForSignerExample example = new SigningRedirectForSignerExample(Props.GetInstance()); example.Run(); Assert.IsNotNull(example.GeneratedLinkToSigningForSigner); }
public void VerifyResult() { CreateTemplateFromPackageExample example = new CreateTemplateFromPackageExample(Props.GetInstance()); example.Run(); DocumentPackage templatePackage = example.EslClient.GetPackage(example.TemplateId); Document document = templatePackage.Documents[example.DOCUMENT_NAME]; Assert.AreEqual(document.Name, example.DOCUMENT_NAME); Assert.AreEqual(document.Id, example.DOCUMENT_ID); Assert.AreEqual(templatePackage.Name, example.PACKAGE_NAME_NEW); // TODO: Make sure that this is correctly preserved. // Assert.AreEqual(templatePackage.Description, example.PACKAGE_DESCRIPTION); // Assert.AreEqual(templatePackage.EmailMessage, example.PACKAGE_EMAIL_MESSAGE); Assert.AreEqual(templatePackage.Signers.Count, 3); Assert.AreEqual(templatePackage.Signers[example.email1].FirstName, example.PACKAGE_SIGNER1_FIRST); Assert.AreEqual(templatePackage.Signers[example.email1].LastName, example.PACKAGE_SIGNER1_LAST); Assert.AreEqual(templatePackage.Signers[example.email2].FirstName, example.PACKAGE_SIGNER2_FIRST); Assert.AreEqual(templatePackage.Signers[example.email2].LastName, example.PACKAGE_SIGNER2_LAST); }
public static void Main(string[] args) { new SignatureStylesExample(Props.GetInstance()).Run(); }
public static void Main(string[] args) { new CreateTemplateFromPackageExample(Props.GetInstance()).Run(); }
public void VerifyResult() { MergeFieldValidationExample example = new MergeFieldValidationExample(Props.GetInstance()); example.Run(); }
public static void Main(string[] args) { new AuthenticationMethodsExample(Props.GetInstance()).Run(); }