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=""<'&">""> <litleTxnId>123</litleTxnId> </refundReversal>"; Assert.AreEqual(expected, actual); }
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=""<'&">""> <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); }