public void TestRenameAccount() { var m = _merchantService.GetMerchant(); var a = m.MerchantAccounts[0]; Assert.IsTrue(a != null); var updated = _merchantService.UpdateMerchantAccount(a.Id, new MerchantAccountOptions() { Name = "the new account name", Primary = a.Primary, CVVPolicy = a.CVVPolicy, AVSPolicy = a.AVSPolicy, IgnoreAVSFailureIfCVVMatch = a.IgnoreAVSFailureIfCVVMatch, RequiredPaymentFields = a.RequiredPaymentFields, SwipeCVVPolicy = a.SwipeCVVPolicy, SwipeAVSPolicy = a.SwipeAVSPolicy, SwipeIgnoreAVSFailureIfCVVMatch = a.SwipeIgnoreAVSFailureIfCVVMatch, SwipeRequiredPaymentFields = a.SwipeRequiredPaymentFields }); Assert.IsTrue(updated.Name == "the new account name"); }