public void TestCancelRecurSubscriptionResponseFailure()
        {
            var responseXml = new XmlDocument();

            responseXml.LoadXml(@"<?xml version='1.0' encoding='UTF-8'?>
                        <response>
                            <statuscode>101</statuscode>
                        </response>");
            CancelRecurSubscriptionResponse response = CancelRecurSubscription.Response(responseXml);

            Assert.That(response.StatusCode, Is.EqualTo(101));
            Assert.That(response.Accepted, Is.False);
            Assert.That(response.ErrorMessage, Is.EqualTo("Invalid XML."));
        }
        public void TestCancelRecurSubscriptionResponse()
        {
            var responseXml = new XmlDocument();

            responseXml.LoadXml(@"<?xml version='1.0' encoding='UTF-8'?>
                        <response>
                            <statuscode>0</statuscode>
                        </response>");
            CancelRecurSubscriptionResponse response = CancelRecurSubscription.Response(responseXml);

            Assert.That(response.StatusCode, Is.EqualTo(0));
            Assert.That(response.Accepted, Is.True);
            Assert.That(response.ErrorMessage, Is.Empty);
        }