コード例 #1
0
ファイル: Props.cs プロジェクト: vtcharlie/esl.sdk.net
 public static Props GetInstance() {
     if (instance == null)
     {
         instance = new Props("signers.properties");
     }
     return instance;
 }
コード例 #2
0
 public GroupManagementExample( Props props ) : this(props.Get("api.url"), 
                                                     props.Get("api.key"), 
                                                     props.Get("1.email"), 
                                                     props.Get("2.email"), 
                                                     props.Get("3.email"), 
                                                     props.Get("4.email")) {
 }
コード例 #3
0
 public AuthenticationMethodsExample( Props props ) 
     : this(props.Get("api.url"), 
           props.Get("api.key"), 
           props.Get("1.email"), 
           props.Get("2.email"), 
           props.Get("3.email"), 
           props.Get("3.sms")) {
 }
コード例 #4
0
 public CustomFieldExample(Props props) : this(props.Get("api.url"), props.Get("api.key"), props.Get("1.email"))
 {
 }
コード例 #5
0
 public SenderManipulationExample(Props props) : this(props.Get("api.url"), props.Get("api.key"), props.Get("1.email"), props.Get("2.email"), props.Get("3.email"))
 {
 }
コード例 #6
0
		public EventNotificationRegistrationExample(Props props) : base(props.Get("api.url"), props.Get("api.key"))
		{
		}
コード例 #7
0
 public SignerOrderingExample( Props props ) : this(props.Get("api.url"), props.Get("api.key"), props.Get("1.email"), props.Get("2.email")) {
 }
コード例 #8
0
 public ContactsExample(Props props) : this(props.Get("api.url"), props.Get("api.key"), props.Get("1.email"))
 {
 }
コード例 #9
0
 public ChangeSignerExample(Props props) : this(props.Get("api.url"), props.Get("api.key"), props.Get("1.email"))
 {
 }
コード例 #10
0
        public void VerifyResult()
        {
            BrandingBarConfigurationExample example = new BrandingBarConfigurationExample(Props.GetInstance());

            example.Run();

            DocumentPackage documentPackage = example.RetrievedPackage;

            Assert.AreEqual(documentPackage.Settings.EnableOptOut, false);
            Assert.AreEqual(documentPackage.Settings.ShowDownloadButton, false);
            Assert.AreEqual(documentPackage.Settings.CeremonyLayoutSettings.GlobalNavigation, false);
            Assert.AreEqual(documentPackage.Settings.CeremonyLayoutSettings.ShowGlobalDownloadButton, false);
        }
コード例 #11
0
        public void VerifyResult()
        {
            SigningRedirectForSignerExample example = new SigningRedirectForSignerExample(Props.GetInstance());

            example.Run();

            Assert.IsNotNull(example.GeneratedLinkToSigningForSigner);

            string stringResponse = HttpRequestUtil.GetUrlContent(example.GeneratedLinkToSigningForSigner);

            StringAssert.Contains("Electronic Disclosures and Signatures Consent", stringResponse);
        }
コード例 #12
0
        public void verify()
        {
            GetCompletedPackagesWithinDateRangeExample example = new GetCompletedPackagesWithinDateRangeExample(Props.GetInstance());

            example.Run();

            assertEqualsPackageUpdatedDate(example.draftPackages, example.START_DATE, example.END_DATE);
            assertEqualsPackageUpdatedDate(example.sentPackages, example.START_DATE, example.END_DATE);
            assertEqualsPackageUpdatedDate(example.declinedPackages, example.START_DATE, example.END_DATE);
            assertEqualsPackageUpdatedDate(example.archivedPackages, example.START_DATE, example.END_DATE);
            assertEqualsPackageUpdatedDate(example.completedPackages, example.START_DATE, example.END_DATE);
        }
 public CreateTemplateOnBehalfOfAnotherSenderExample(Props props) : this(props.Get("api.key"), props.Get("api.url"), props.Get("1.email"))
 {
 }
 public static void Main(string[] args)
 {
     new CreateTemplateOnBehalfOfAnotherSenderExample(Props.GetInstance()).Run();
 }
コード例 #15
0
 public GetPackageMessageExample(Props props) : this(props.Get("api.key"), props.Get("api.url"), props.Get("1.email"))
 {
 }
コード例 #16
0
 public GetPackageListExample( Props props ) : this(props.Get("api.url"), props.Get("api.key")) {
 }
コード例 #17
0
 public DocumentPackageAttributesExample(Props props) : this(props.Get("api.url"), props.Get("api.key"), props.Get("1.email"))
 {
 }
コード例 #18
0
 public static void Main(string[] args)
 {
     new ChangeSignerExample(Props.GetInstance()).Run();
 }
コード例 #19
0
 public PackageLanguageConfigurationExample( Props props ) : this(props.Get("api.url"), props.Get("api.key"), props.Get("1.email")) {
 }
コード例 #20
0
 public DeletePackageExample(Props props) : this(props.Get("api.url"), props.Get("api.key"), props.Get("1.email"))
 {
 }
コード例 #21
0
 public ExceptionHandlingExample(Props props) : this(props.Get("api.url"), props.Get("api.key"))
 {
 }
コード例 #22
0
 public static void Main(string[] args)
 {
     new DeletePackageExample(Props.GetInstance()).Run();
 }
コード例 #23
0
 public DocumentPackageSettingsExample( Props props ) : this(props.Get("api.url"), props.Get("api.key"), props.Get("1.email")) {
 }
コード例 #24
0
 public DesignerRedirectForPackageSenderExample(Props props) : this(props.Get("api.key"), props.Get("api.url"), props.Get("webpage.url"))
 {
 }
コード例 #25
0
 public ChangeSignerExample(Props props) : this(props.Get("api.url"), props.Get("api.key"), props.Get("1.email"))
 {
 }
コード例 #26
0
 public static void Main(string[] args)
 {
     new DesignerRedirectForPackageSenderExample(Props.GetInstance()).Run();
 }
コード例 #27
0
 public CustomSenderInfoExample(Props props) : this(props.Get("api.url"), props.Get("api.key"))
 {
 }
コード例 #28
0
 public static void Main(string[] args)
 {
     new CreateSenderTemplateExample(Props.GetInstance()).Run();
 }
コード例 #29
0
		public PackageArchiveExample( Props props ) : this(props.Get("api.url"), props.Get("api.key"), props.Get("1.email")) 
		{
        }
コード例 #30
0
 public CreateSenderTemplateExample(Props props) : this(props.Get("api.key"), props.Get("api.url"), props.Get("1.email"))
 {
 }
コード例 #31
0
 public StartFastTrackExample(Props props) : this(props.Get("api.key"), props.Get("api.url"), props.Get("1.email"))
 {
 }
コード例 #32
0
 public static void Main(string[] args)
 {
     new EventNotificationRegistrationExample(Props.GetInstance()).Run();
 }
コード例 #33
0
 public BasicPackageCreationExample(Props props) : this(props.Get("api.url"), props.Get("api.key"), props.Get("1.email"), props.Get("2.email"))
 {
 }
コード例 #34
0
 public EventNotificationRegistrationExample(Props props) : base(props.Get("api.url"), props.Get("api.key"))
 {
 }
コード例 #35
0
 public FieldPositionExtractionExample( Props props ) : this(props.Get("api.url"), props.Get("api.key"), props.Get("1.email")) {
 }
コード例 #36
0
 public static void Main(string[] args)
 {
     new GroupManagementExample(Props.GetInstance()).Run();
 }
コード例 #37
0
 public UpdatePackageExample(Props props) : this(props.Get("api.url"), props.Get("api.key"))
 {
 }
コード例 #38
0
 public FieldValidationExample(Props props) : this(props.Get("api.key"), props.Get("api.url"), props.Get("1.email"))
 {
 }
コード例 #39
0
 public HistoryDocumentExample(Props props) : this(props.Get("api.url"), props.Get("api.key"), props.Get("1.email"), props.Get("2.email"))
 {
 }
コード例 #40
0
 public static void Main(string[] args)
 {
     new FieldValidationExample(Props.GetInstance()).Run();
 }
コード例 #41
0
 public SignerAuthenticationTokenExample( Props props ) : this(props.Get("api.url"), props.Get("api.key"), props.Get("webpage.url"), props.Get("1.email"))
 {
 }
コード例 #42
0
 public SignerBoundFieldsExample(Props props) : this(props.Get("api.key"), props.Get("api.url"), props.Get("1.email"))
 {
 }
コード例 #43
0
 public DocumentRetrievalExample(Props props) : this(props.Get("api.url"), props.Get("api.key"), props.Get("1.email"))
 {
 }
コード例 #44
0
 public static void Main(string[] args)
 {
     new SignerBoundFieldsExample(Props.GetInstance()).Run();
 }
コード例 #45
0
 public SigningRedirectForSignerExample( Props props ) : this(props.Get("api.url"),
         props.Get("api.key"),
         props.Get("webpage.url"),
         props.Get("1.email"))
 {
 }
コード例 #46
0
        public void VerifyResult()
        {
            MixingSignatureAndAcceptanceOnOnedocumentExample example = new MixingSignatureAndAcceptanceOnOnedocumentExample(Props.GetInstance());

            example.Run();

            DocumentPackage documentPackage = example.RetrievedPackage;

            List <Signature> signatures = documentPackage.Documents["First Document"].Signatures;

            Assert.AreEqual(2, signatures.Count);
            Assert.AreEqual(SignatureStyle.FULL_NAME, signatures[0].Style);
            Assert.AreEqual(SignatureStyle.ACCEPTANCE, signatures[1].Style);
        }
コード例 #47
0
 public TextAnchorExtractionExample( Props props ) : this(props.Get("api.url"), props.Get("api.key"), props.Get("1.email")) {
 }
コード例 #48
0
        public void VerifyResult()
        {
            SignerInformationForEquifaxCanadaExample example = new SignerInformationForEquifaxCanadaExample(Props.GetInstance());

            example.Run();

            DocumentPackage documentPackage = example.RetrievedPackage;

            SignerInformationForEquifaxCanada signerInformationForEquifaxCanada = documentPackage.Signers[example.SIGNER_EMAIL].KnowledgeBasedAuthentication.SignerInformationForEquifaxCanada;

            Assert.AreEqual(signerInformationForEquifaxCanada.FirstName, example.FIRST_NAME);
            Assert.AreEqual(signerInformationForEquifaxCanada.LastName, example.LAST_NAME);
            Assert.AreEqual(signerInformationForEquifaxCanada.StreetAddress, example.STREET_ADDRESS);
            Assert.AreEqual(signerInformationForEquifaxCanada.City, example.CITY);
            Assert.AreEqual(signerInformationForEquifaxCanada.Province, example.PROVINCE);
            Assert.AreEqual(signerInformationForEquifaxCanada.PostalCode, example.POSTAL_CODE);
            Assert.AreEqual(signerInformationForEquifaxCanada.TimeAtAddress, example.TIME_AT_ADDRESS);
            Assert.AreEqual(signerInformationForEquifaxCanada.DriversLicenseNumber, example.DRIVERS_LICENSE_NUMBER);
            Assert.AreEqual(signerInformationForEquifaxCanada.SocialInsuranceNumber, example.SOCIAL_INSURANCE_NUMBER);
            Assert.AreEqual(signerInformationForEquifaxCanada.HomePhoneNumber, example.HOME_PHONE_NUMBER);
            Assert.AreEqual(signerInformationForEquifaxCanada.DateOfBirth, example.DATE_OF_BIRTH);
        }
コード例 #49
0
 public DeletePackageExample( Props props ) : this(props.Get("api.url"), props.Get("api.key"), props.Get("1.email")) {
 }
コード例 #50
0
        public void VerifyResult()
        {
            DocumentPackageSettingsExample example = new DocumentPackageSettingsExample(Props.GetInstance());

            example.Run();

            DocumentPackage result = example.EslClient.GetPackage(example.PackageId);

            Assert.IsTrue(result.Settings.EnableFirstAffidavit.HasValue);
            Assert.IsFalse(result.Settings.EnableFirstAffidavit.Value);

            Assert.IsTrue(result.Settings.EnableSecondAffidavit.HasValue);
            Assert.IsFalse(result.Settings.EnableSecondAffidavit.Value);

            Assert.IsTrue(result.Settings.ShowLanguageDropDown.HasValue);
            Assert.IsFalse(result.Settings.ShowLanguageDropDown.Value);

            Assert.IsTrue(result.Settings.ShowOwnerInPersonDropDown.HasValue);
            Assert.IsFalse(result.Settings.ShowOwnerInPersonDropDown.Value);

            Assert.AreEqual(3, result.Settings.DeclineReasons.Count);
            Assert.AreEqual(example.DECLINE_REASON_1, result.Settings.DeclineReasons[0]);
            Assert.AreEqual(example.DECLINE_REASON_2, result.Settings.DeclineReasons[1]);
            Assert.AreEqual(example.DECLINE_REASON_3, result.Settings.DeclineReasons[2]);

            Assert.AreEqual(3, result.Settings.DeclineReasons.Count);
            Assert.AreEqual(example.OPT_OUT_REASON_1, result.Settings.OptOutReasons[0]);
            Assert.AreEqual(example.OPT_OUT_REASON_2, result.Settings.OptOutReasons[1]);
            Assert.AreEqual(example.OPT_OUT_REASON_3, result.Settings.OptOutReasons[2]);
        }
コード例 #51
0
 public DocumentExtractionExample( Props props ) : this(props.Get("api.url"), props.Get("api.key"), props.Get("1.email")) {
 }
コード例 #52
0
 public InPersonExample(Props props) : this(props.Get("api.url"), props.Get("api.key"), props.Get("1.email"), props.Get("2.email"))
 {
 }
コード例 #53
0
 public CreatePackageFromTemplateExample(Props props) : this(props.Get("api.url"), props.Get("api.key"), props.Get("1.email"), props.Get("2.email"))
 {
 }
コード例 #54
0
 public static void Main(string[] args)
 {
     new InPersonExample(Props.GetInstance()).Run();
 }
コード例 #55
0
 public FieldManipulationExample(Props props) : this(props.Get("api.url"), props.Get("api.key"), props.Get("1.email"))
 {
 }
 public static void Main(string[] args)
 {
     new CustomSenderInfoInCreateNewTemplateExample(Props.GetInstance()).Run();
 }
 public CustomSenderInfoInCreateNewTemplateExample(Props props) : this(props.Get("api.url"), props.Get("api.key"))
 {
 }
 public CustomSenderInfoInCreateNewTemplateExample(Props props) : this(props.Get("api.key"), props.Get("api.url"))
 {
 }
コード例 #59
0
 public ListTemplatesExample( Props props ) : this(props.Get("api.url"), props.Get("api.key")) {
 }
コード例 #60
0
 public static void Main(string[] args)
 {
     new StartFastTrackExample(Props.GetInstance()).Run();
 }