public void CancelAnticipation() { BulkAnticipation anticipation = CreateBulkAnticipation(); Recipient recipient = CreateRecipient(); recipient.Save(); Transaction transaction = CreateCreditCardSplitRuleTransaction(recipient); transaction.Save(); recipient.CreateAnticipation(anticipation); Assert.IsTrue(anticipation.Status == Enumeration.BulkAnticipationStatus.Pending); recipient.CancelAnticipation(anticipation); Assert.IsTrue(anticipation.Status == Enumeration.BulkAnticipationStatus.Canceled); }