public void RecipientsEndToEndTest()
 {
     var envelope = new Envelope { Login = _account };
     byte[] doc1 = { 36, 45, 34, 67, 121, 87, 99, 32, 32, 32, 54, 54, 55, 56, 32 };
     var signers = new List<Signer>();
     var ccs = new List<Signer>();
     signers.Add(new Signer { email = "*****@*****.**", name = "test2", recipientId = "1", routingOrder = "1" });
     ccs.Add(new Signer { email = _account.Email, name = _account.AccountName, recipientId = "2", routingOrder = "2" });
     envelope.Recipients = new Recipients { signers = signers.ToArray(), carbonCopies = ccs.ToArray() };
     Assert.IsTrue(envelope.Create(doc1, "test-self-signed.doc"));
     Assert.IsNull(envelope.RestError);
     Assert.AreEqual(2, envelope.GetRecipientNames().Count());
     // add more recipients
     signers.Clear();
     ccs.Clear();
     ccs.Add(new Signer { email = "*****@*****.**", name = "test2", recipientId = "3", routingOrder = "4" });
     signers.Add(new Signer { email = _account.Email, name = _account.AccountName, recipientId = "4", routingOrder = "3" });
     Assert.IsTrue(envelope.AddRecipients(new Recipients { signers = signers.ToArray(), carbonCopies = ccs.ToArray() }));
     Assert.IsNull(envelope.RestError);
     Assert.AreEqual(4, envelope.GetRecipientNames().Count());
     Assert.AreEqual((string)(envelope.GetFirstRecipients().First()["email"]), "*****@*****.**");
 }