public void ConvertNullSDKToAPI() { sdkSignerVerification = null; converter = new SignerVerificationConverter(sdkSignerVerification); Assert.IsNull(converter.ToAPISignerVerification()); }
public void ConvertSDKToSDK() { sdkSignerVerification = CreateTypicalSDKSignerVerification(); SignerVerification signerVerification = new SignerVerificationConverter(sdkSignerVerification).ToSDKSignerVerification(); Assert.IsNotNull(signerVerification); Assert.AreEqual(signerVerification, sdkSignerVerification); }
public void ConvertAPIToSDK() { apiSignerVerification = CreateTypicalAPIVerification(); sdkSignerVerification = new SignerVerificationConverter(apiSignerVerification).ToSDKSignerVerification(); Assert.IsNotNull(sdkSignerVerification); Assert.AreEqual(sdkSignerVerification.TypeId, apiSignerVerification.TypeId); Assert.AreEqual(sdkSignerVerification.Payload, apiSignerVerification.Payload); }
public void ConvertSDKToAPI() { sdkSignerVerification = CreateTypicalSDKSignerVerification(); apiSignerVerification = new SignerVerificationConverter(sdkSignerVerification).ToAPISignerVerification(); Assert.IsNotNull(apiSignerVerification); Assert.AreEqual(apiSignerVerification.TypeId, sdkSignerVerification.TypeId); Assert.AreEqual(apiSignerVerification.Payload, sdkSignerVerification.Payload); }
override public void Execute() { DocumentPackage superDuperPackage = PackageBuilder.NewPackageNamed(PackageName) .DescribedAs("This is a package created using the eSignLive SDK") .WithSigner(SignerBuilder.NewSignerWithEmail(email1) .WithFirstName("John1") .WithLastName("Smith1")) .WithDocument(DocumentBuilder.NewDocumentNamed("First Document") .FromStream(fileStream1, DocumentType.PDF) .WithSignature(SignatureBuilder.SignatureFor(email1) .OnPage(0) .AtPosition(100, 100))) .Build(); packageId = ossClient.CreatePackage(superDuperPackage); retrievedPackage = ossClient.GetPackage(packageId); Signer signer = retrievedPackage.GetSigner(email1); // Create signerVerificationToBeCreated = SignerVerificationBuilder .NewSignerVerification(CREATE_VERIFICATION_TYPE_ID) .WithPayload(CREATE_VERIFICATION_PAYLOAD) .Build(); ossClient.CreateSignerVerification(packageId, signer.Id, signerVerificationToBeCreated); retrievedSignerVerificationAfterCreate = ossClient.GetSignerVerification(packageId, signer.Id); // Update signerVerificationToBeUpdated = SignerVerificationBuilder .NewSignerVerification(UPDATE_VERIFICATION_TYPE_ID) .WithPayload(UPDATE_VERIFICATION_PAYLOAD) .Build(); ossClient.UpdateSignerVerification(packageId, signer.Id, signerVerificationToBeUpdated); retrievedSignerVerificationAfterUpdate = ossClient.GetSignerVerification(packageId, signer.Id); // Delete ossClient.DeleteSignerVerification(packageId, signer.Id); retrievedSignerVerificationAfterDelete = ossClient.GetSignerVerification(packageId, signer.Id); }