public void CanUpdateCustomerShippingAddress()
        {
            var cim = new CustomerInformationManager(TestHelper.TemplateFactory, ObjectMother.TestAuthentication);

            var createProfileResponse = cim.Create(_profileAttributes);
            _profileAttributes.GateWayId = createProfileResponse.Params["customerProfileId"];

            var createShippingAddressResponse = cim.Create(_profileAttributes, _addressAttributes);

            _addressAttributes.GateWayId = createShippingAddressResponse.Params["customerAddressId"];

            var response = cim.Update(_profileAttributes, _addressAttributes);
            Assert.IsTrue(response.Success);
        }
        public void CanUpdatePaymentProfile()
        {
            var cim = new CustomerInformationManager(TestHelper.TemplateFactory, ObjectMother.TestAuthentication);
            var createProfileResponse = cim.Create(_profileAttributes);

            _profileAttributes.GateWayId = createProfileResponse.Params["customerProfileId"];
            var createPaymentProfileResponse = cim.CreatePaymentProfile(_profileAttributes, _addressAttributes, _creditCardAttributes);
            _paymentProfileAttributes.GateWayId = createPaymentProfileResponse.Params["customerPaymentProfileId"];

            _profileAttributes.CustomerId = _profileAttributes.CustomerId + "chg";
            _profileAttributes.Email = "chg" + _profileAttributes.Email;

            var updateProfileresponse = cim.Update(_profileAttributes, _addressAttributes, _creditCardAttributes, _paymentProfileAttributes);

            Assert.IsTrue(updateProfileresponse.Success);
            Assert.IsNotNullOrEmpty(updateProfileresponse.Params["validationDirectResponse"]);
        }
        public void CanUpdateCustomerProfile()
        {
            var cim = new CustomerInformationManager(TestHelper.TemplateFactory, ObjectMother.TestAuthentication);
            var createProfileResponse = cim.Create(_profileAttributes);

            _profileAttributes.GateWayId = createProfileResponse.Params["customerProfileId"];

            _profileAttributes.CustomerId = _profileAttributes.CustomerId + "Chg";
            _profileAttributes.Email = "Chg" + _profileAttributes.Email;

            var updateCustomerProfileresponse = cim.Update(_profileAttributes);

            Assert.IsTrue(updateCustomerProfileresponse.Success);
        }