public void Close() { Accounts.Close(AccountCode); if(State.Is(AccountState.Active)) State ^= AccountState.Active; State |= AccountState.Closed; }
public void CloseAccount() { string s = Factories.GetMockAccountName(); Account acct = new Account(s); acct.Create(); acct.Close(); Account getAcct = Account.Get(s); Assert.AreEqual(getAcct.State, Recurly.Account.AccountState.closed); }