Exemple #1
0
        public void BuildsFieldWithDefaultValues()
        {
            InpersonHostThankYouOptions inpersonHostThankYouOptions = InpersonHostThankYouOptionsBuilder.NewInpersonHostThankYouOptions()
                                                                      .WithTitle()
                                                                      .WithBody()
                                                                      .WithRecipientName()
                                                                      .WithRecipientEmail()
                                                                      .WithRecipientRole()
                                                                      .WithRecipientStatus()
                                                                      .WithDownloadButton()
                                                                      .WithReviewDocumentsButton()
                                                                      .Build();

            Assert.IsTrue(inpersonHostThankYouOptions.Title);
            Assert.IsTrue(inpersonHostThankYouOptions.Body);
            Assert.IsTrue(inpersonHostThankYouOptions.RecipientName);
            Assert.IsTrue(inpersonHostThankYouOptions.RecipientEmail);
            Assert.IsTrue(inpersonHostThankYouOptions.RecipientRole);
            Assert.IsTrue(inpersonHostThankYouOptions.RecipientStatus);
            Assert.IsTrue(inpersonHostThankYouOptions.DownloadButton);
            Assert.IsTrue(inpersonHostThankYouOptions.ReviewDocumentsButton);
        }
Exemple #2
0
        public void BuildsFieldWithSpecifiedValues()
        {
            InpersonHostThankYouOptions inpersonHostThankYouOptions = InpersonHostThankYouOptionsBuilder.NewInpersonHostThankYouOptions()
                                                                      .WithoutTitle()
                                                                      .WithoutBody()
                                                                      .WithoutRecipientName()
                                                                      .WithoutRecipientEmail()
                                                                      .WithoutRecipientRole()
                                                                      .WithoutRecipientStatus()
                                                                      .WithoutDownloadButton()
                                                                      .WithoutReviewDocumentsButton()
                                                                      .Build();

            Assert.IsFalse(inpersonHostThankYouOptions.Title);
            Assert.IsFalse(inpersonHostThankYouOptions.Body);
            Assert.IsFalse(inpersonHostThankYouOptions.RecipientName);
            Assert.IsFalse(inpersonHostThankYouOptions.RecipientEmail);
            Assert.IsFalse(inpersonHostThankYouOptions.RecipientRole);
            Assert.IsFalse(inpersonHostThankYouOptions.RecipientStatus);
            Assert.IsFalse(inpersonHostThankYouOptions.DownloadButton);
            Assert.IsFalse(inpersonHostThankYouOptions.ReviewDocumentsButton);
        }
Exemple #3
0
        public void BuildsFieldWithDefaultValues()
        {
            SigningUiOptions signingUiOptions = SigningUiOptionsBuilder.NewSigningUiOptions()
                                                .WithCompleteSummaryOptions(CompleteSummaryOptionsBuilder.NewCompleteSummaryOptions()
                                                                            .WithFrom()
                                                                            .WithTitle()
                                                                            .WithMessage()
                                                                            .WithDownload()
                                                                            .WithReview()
                                                                            .WithContinue()
                                                                            .Build())
                                                .WithInpersonHostThankYouOptions(InpersonHostThankYouOptionsBuilder.NewInpersonHostThankYouOptions()
                                                                                 .WithTitle()
                                                                                 .WithBody()
                                                                                 .WithRecipientName()
                                                                                 .WithRecipientEmail()
                                                                                 .WithRecipientRole()
                                                                                 .WithRecipientStatus()
                                                                                 .WithDownloadButton()
                                                                                 .WithReviewDocumentsButton()
                                                                                 .Build())
                                                .WithInpersonWelcomeOptions(InpersonWelcomeOptionsBuilder.NewInpersonWelcomeOptions()
                                                                            .WithTitle()
                                                                            .WithBody()
                                                                            .WithRecipientName()
                                                                            .WithRecipientEmail()
                                                                            .WithRecipientActionRequired()
                                                                            .WithRecipientRole()
                                                                            .WithRecipientStatus()
                                                                            .Build())
                                                .WithNotaryHostThankYouOptions(NotaryHostThankYouOptionsBuilder.NewNotaryHostThankYouOptions()
                                                                               .WithTitle()
                                                                               .WithBody()
                                                                               .WithRecipientName()
                                                                               .WithRecipientEmail()
                                                                               .WithRecipientRole()
                                                                               .WithNotaryTag()
                                                                               .WithRecipientStatus()
                                                                               .WithDownloadButton()
                                                                               .WithReviewDocumentsButton()
                                                                               .Build())
                                                .WithNotaryWelcomeOptions(NotaryWelcomeOptionsBuilder.NewNotaryWelcomeOptions()
                                                                          .WithTitle()
                                                                          .WithBody()
                                                                          .WithRecipientName()
                                                                          .WithRecipientEmail()
                                                                          .WithRecipientActionRequired()
                                                                          .WithNotaryTag()
                                                                          .WithRecipientRole()
                                                                          .WithRecipientStatus()
                                                                          .Build())
                                                .WithOverviewOptions(OverviewOptionsBuilder.NewOverviewOptions()
                                                                     .WithTitle()
                                                                     .WithBody()
                                                                     .WithDocumentSection()
                                                                     .WithUploadSection()
                                                                     .Build())
                                                .Build();

            Assert.IsTrue(signingUiOptions.CompleteSummaryOptions.From);
            Assert.IsTrue(signingUiOptions.CompleteSummaryOptions.Title);
            Assert.IsTrue(signingUiOptions.CompleteSummaryOptions.Message);
            Assert.IsTrue(signingUiOptions.CompleteSummaryOptions.Download);
            Assert.IsTrue(signingUiOptions.CompleteSummaryOptions.Review);
            Assert.IsTrue(signingUiOptions.CompleteSummaryOptions.Continue);
            Assert.IsTrue(signingUiOptions.InpersonHostThankYouOptions.Title);
            Assert.IsTrue(signingUiOptions.InpersonHostThankYouOptions.Body);
            Assert.IsTrue(signingUiOptions.InpersonHostThankYouOptions.RecipientName);
            Assert.IsTrue(signingUiOptions.InpersonHostThankYouOptions.RecipientEmail);
            Assert.IsTrue(signingUiOptions.InpersonHostThankYouOptions.RecipientRole);
            Assert.IsTrue(signingUiOptions.InpersonHostThankYouOptions.RecipientStatus);
            Assert.IsTrue(signingUiOptions.InpersonHostThankYouOptions.DownloadButton);
            Assert.IsTrue(signingUiOptions.InpersonHostThankYouOptions.ReviewDocumentsButton);
            Assert.IsTrue(signingUiOptions.InpersonWelcomeOptions.Title);
            Assert.IsTrue(signingUiOptions.InpersonWelcomeOptions.Body);
            Assert.IsTrue(signingUiOptions.InpersonWelcomeOptions.RecipientName);
            Assert.IsTrue(signingUiOptions.InpersonWelcomeOptions.RecipientEmail);
            Assert.IsTrue(signingUiOptions.InpersonWelcomeOptions.RecipientActionRequired);
            Assert.IsTrue(signingUiOptions.InpersonWelcomeOptions.RecipientRole);
            Assert.IsTrue(signingUiOptions.InpersonWelcomeOptions.RecipientStatus);
            Assert.IsTrue(signingUiOptions.NotaryHostThankYouOptions.Title);
            Assert.IsTrue(signingUiOptions.NotaryHostThankYouOptions.Body);
            Assert.IsTrue(signingUiOptions.NotaryHostThankYouOptions.RecipientName);
            Assert.IsTrue(signingUiOptions.NotaryHostThankYouOptions.RecipientEmail);
            Assert.IsTrue(signingUiOptions.NotaryHostThankYouOptions.RecipientRole);
            Assert.IsTrue(signingUiOptions.NotaryHostThankYouOptions.NotaryTag);
            Assert.IsTrue(signingUiOptions.NotaryHostThankYouOptions.RecipientStatus);
            Assert.IsTrue(signingUiOptions.NotaryHostThankYouOptions.DownloadButton);
            Assert.IsTrue(signingUiOptions.NotaryHostThankYouOptions.ReviewDocumentsButton);
            Assert.IsTrue(signingUiOptions.NotaryWelcomeOptions.Title);
            Assert.IsTrue(signingUiOptions.NotaryWelcomeOptions.Body);
            Assert.IsTrue(signingUiOptions.NotaryWelcomeOptions.RecipientName);
            Assert.IsTrue(signingUiOptions.NotaryWelcomeOptions.RecipientEmail);
            Assert.IsTrue(signingUiOptions.NotaryWelcomeOptions.RecipientActionRequired);
            Assert.IsTrue(signingUiOptions.NotaryWelcomeOptions.NotaryTag);
            Assert.IsTrue(signingUiOptions.NotaryWelcomeOptions.RecipientRole);
            Assert.IsTrue(signingUiOptions.NotaryWelcomeOptions.RecipientStatus);
            Assert.IsTrue(signingUiOptions.OverviewOptions.Title);
            Assert.IsTrue(signingUiOptions.OverviewOptions.Body);
            Assert.IsTrue(signingUiOptions.OverviewOptions.DocumentSection);
            Assert.IsTrue(signingUiOptions.OverviewOptions.UploadSection);
        }