Serialize() public method

public Serialize ( ) : string
return string
        public void testDeactivate_OnlyRequired()
        {
            deactivate deactivate = new deactivate();
            deactivate.orderId = "12345";
            deactivate.orderSource = orderSourceType.ecommerce;
            deactivate.card = new cardType();
            deactivate.id = "theId";
            deactivate.reportGroup = "theReportGroup";

            String actual = deactivate.Serialize();
            String expected = @"
            <deactivate id=""theId"" reportGroup=""theReportGroup"">
            <orderId>12345</orderId>
            <orderSource>ecommerce</orderSource>
            <card>
            <type>MC</type>
            </card>
            </deactivate>";
            Assert.AreEqual(expected, actual);
        }
        public void testDeactivate()
        {
            deactivate deactivate = new deactivate();
            deactivate.orderSource = orderSourceType.ecommerce;
            deactivate.card = new cardType();

            batchRequest.addDeactivate(deactivate);

            Assert.AreEqual(1, batchRequest.getNumDeactivates());

            mockLitleFile.Verify(litleFile => litleFile.createRandomFile(It.IsAny<String>(), It.IsAny<String>(), It.IsAny<String>(), mockLitleTime.Object));
            mockLitleFile.Verify(litleFile => litleFile.AppendLineToFile(mockFilePath, deactivate.Serialize()));
        }