Example #1
0
        public void testSpecialCharacters_RefundReversal()
        {
            refundReversal refundReversal = new refundReversal();

            refundReversal.id          = "theId";
            refundReversal.reportGroup = "<'&\">";
            refundReversal.customerId  = "theCustomerId";
            refundReversal.litleTxnId  = "123";

            String actual   = refundReversal.Serialize();
            String expected = @"
<refundReversal id=""theId"" customerId=""theCustomerId"" reportGroup=""&lt;&apos;&amp;&quot;&gt;"">
<litleTxnId>123</litleTxnId>
</refundReversal>";

            Assert.AreEqual(expected, actual);
        }
Example #2
0
        public void testRefundReversal_Full()
        {
            refundReversal refundReversal = new refundReversal();

            refundReversal.id          = "theId";
            refundReversal.reportGroup = "theReportGroup";
            refundReversal.customerId  = "theCustomerId";
            refundReversal.litleTxnId  = "123";

            String actual   = refundReversal.Serialize();
            String expected = @"
<refundReversal id=""theId"" customerId=""theCustomerId"" reportGroup=""theReportGroup"">
<litleTxnId>123</litleTxnId>
</refundReversal>";

            Assert.AreEqual(expected, actual);
        }
        public void testSpecialCharacters_RefundReversal()
        {
            var refundReversal = new refundReversal();
            refundReversal.id = "theId";
            refundReversal.reportGroup = "<'&\">";
            refundReversal.customerId = "theCustomerId";
            refundReversal.litleTxnId = "123";

            var actual = refundReversal.Serialize();
            var expected = @"
            <refundReversal id=""theId"" customerId=""theCustomerId"" reportGroup=""&lt;&apos;&amp;&quot;&gt;"">
            <litleTxnId>123</litleTxnId>
            </refundReversal>";
            Assert.AreEqual(expected, actual);
        }
        public void testRefundReversal_Full()
        {
            var refundReversal = new refundReversal();
            refundReversal.id = "theId";
            refundReversal.reportGroup = "theReportGroup";
            refundReversal.customerId = "theCustomerId";
            refundReversal.litleTxnId = "123";

            var actual = refundReversal.Serialize();
            var expected = @"
            <refundReversal id=""theId"" customerId=""theCustomerId"" reportGroup=""theReportGroup"">
            <litleTxnId>123</litleTxnId>
            </refundReversal>";
            Assert.AreEqual(expected, actual);
        }