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 );
 }
예제 #2
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);
        }
        public void VerifyResult()
        {
            DocumentPackageSettingsExample example = new DocumentPackageSettingsExample();

            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.IsTrue(result.Settings.EnforceCaptureSignature.HasValue);
            Assert.IsTrue(result.Settings.EnforceCaptureSignature.Value);

            Assert.AreEqual(example.FONT_SIZE, result.Settings.FontSize.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.IsTrue(result.Settings.DisableDeclineOther.Value);

            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]);
            Assert.IsTrue(result.Settings.DisableOptOutOther.Value);

            Assert.IsTrue(result.Settings.DefaultTimeBasedExpiry.Value);
            Assert.AreEqual(example.EXPIRE_IN_DAYS, result.Settings.RemainingDays.Value);
        }