Serialize() public method

public Serialize ( ) : string
return string
Esempio n. 1
0
        public void testUnloadReversal_Full()
        {
            unloadReversal unloadReversal = new unloadReversal();

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

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

            Assert.AreEqual(expected, actual);
        }
        public void testUnloadReversal_Full()
        {
            unloadReversal unloadReversal = new unloadReversal();
            unloadReversal.id = "theId";
            unloadReversal.reportGroup = "theReportGroup";
            unloadReversal.customerId = "theCustomerId";
            unloadReversal.litleTxnId = "123";

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