public void ReteivingAllDraftEnvelopesTest() { var envelope = new Envelope { Login = _account }; // add a draft envelope to be found later Assert.IsTrue(envelope.Create()); Assert.IsNull(envelope.RestError); Thread.Sleep(1000); // need to allow the system to fully create the envelope var accountEnvelopes = envelope.GetDraftEnvelopes(DateTime.Now.AddSeconds(-5)); Assert.IsNull(envelope.RestError); Assert.AreEqual(1, accountEnvelopes.Envelopes.Length, "We expect only 1 draft envelope in the last 5 seconds that was created by this unit test"); }