Example #1
0
        public void TestSendBoardResolution()
        {
            var esf = new EchoSignFacade(m_oDB, m_oLog);

            esf.Send(new [] { new EchoSignEnvelope {
                                  CustomerID = 28, Directors = new [] { 2, 3, }, TemplateID = 1, SendToCustomer = true,
                              } });
        }         // TestSendBoardResolution
Example #2
0
        public void TestSendPersonalGuarantee()
        {
            var esf = new EchoSignFacade(m_oDB, m_oLog);

            esf.Send(new [] { new EchoSignEnvelope {
                                  CustomerID = 28, Directors = new [] { 2, 3, }, TemplateID = 2, SendToCustomer = false,
                              } });
        }         // TestSendPersonalGuarantee
Example #3
0
        }         // Name

        public override void Execute()
        {
            if (Package == null)
            {
                Result = "Nothing to send (package is NULL).";
                Log.Debug(Result);
                return;
            }             // if

            if (Package.Length == 0)
            {
                Result = "Empty e-sign package received.";
                Log.Debug(Result);
                return;
            }             // if

            var oPackage = Package.Where(x => x.IsValid).ToArray();

            if (oPackage.Length == 0)
            {
                Result = "No envelopes are ready to be sent in: " + string.Join("\n", (object[])Package);
                Log.Debug(Result);
                return;
            }             // if

            Log.Debug("Send for signature request:\n{0}", string.Join("\n", (object[])oPackage));

            EchoSignFacade     esf    = new EchoSignFacade(DB, Log);
            EchoSignSendResult result = esf.Send(oPackage);

            switch (result.Code)
            {
            case EchoSignSendResultCode.Success:
                Result = string.Empty;
                break;

            case EchoSignSendResultCode.Partial:
                Result = "Some envelopes were not sent.";
                break;

            case EchoSignSendResultCode.Fail:
                Result = "Sending failed.";
                break;

            default:
                throw new ArgumentOutOfRangeException();
            }             // switch

            if (result.ErrorList.Count > 0)
            {
                Result += "\n" + string.Join("\n", result.ErrorList);
            }
        }         // Execute
Example #4
0
        public void TestProcessPending()
        {
            var esf = new EchoSignFacade(m_oDB, m_oLog);

            esf.ProcessPending();
        }         // TestProcessPending
Example #5
0
 public void TestConfiguration()
 {
     var esf = new EchoSignFacade(m_oDB, m_oLog);
 }         // TestConfiguration