public void ExecuteUserRemovedService_v2()
        {
            UserRemoveServiceRequest request = new UserRemoveServiceRequest();
            request.app_key = this.app_key;
            request.user_key = this.user_key;
            request.code = "123";
            request.service = "abc";

            ServiceResponse rsp = api.PostRequest<UserRemoveServiceRequest, ServiceResponse>("user.removeservice", request);

            Assert.AreEqual(rsp.status, "FAIL");
        }
        /// <summary>
        /// Remove a service from the given user
        /// </summary>
        /// <param name="request">The request.</param>
        /// <returns>OK. Error message on failure.</returns>
        public ServiceResponse RemoveService(UserRemoveServiceRequest request)
        {
            using (var client = GetDefaultClient())
            {
                // build form data post
                HttpMultipartMimeForm form = new HttpMultipartMimeForm();
                form.Add("app_key", this.AppKey);
                form.Add("user_key", this.UserKey);
                form.Add("service", request.service);
                form.Add("code", request.code);

                // call method
                using (HttpResponseMessage response = client.Post("user.removeservice", form.CreateHttpContent()))
                {
                    response.EnsureStatusIsSuccessful();
                    return response.Content.ReadAsXmlSerializable<ServiceResponse>();
                }
            }
        }
        public void ExecuteUserRemovedService_v1()
        {
            UserRemoveServiceRequest request = new UserRemoveServiceRequest();
            request.code = "123";
            request.service = "abc";

            ServiceResponse rsp = api.RemoveService(request);

            Assert.AreEqual(rsp.status, "FAIL");
        }