Inheritance: transactionTypeWithReportGroup
        public void TestSimple()
        {
            depositReversal depositReversal = new depositReversal();
            depositReversal.id = "a";
            depositReversal.reportGroup = "b";
            depositReversal.litleTxnId = "123";

            var mock = new Mock<Communications>();

            mock.Setup(Communications => Communications.HttpPost(It.IsRegex(".*<litleTxnId>123</litleTxnId>.*", RegexOptions.Singleline), It.IsAny<Dictionary<String, String>>()))
                .Returns("<litleOnlineResponse version='8.22' response='0' message='Valid Format' xmlns='http://www.litle.com/schema'><depositReversalResponse><litleTxnId>123</litleTxnId></depositReversalResponse></litleOnlineResponse>");

            Communications mockedCommunication = mock.Object;
            litle.setCommunication(mockedCommunication);
            depositReversalResponse response = litle.DepositReversal(depositReversal);
            Assert.AreEqual("123", response.litleTxnId);
        }
        public void testDepositReversal_Full()
        {
            depositReversal depositReversal = new depositReversal();
            depositReversal.id = "theId";
            depositReversal.reportGroup = "theReportGroup";
            depositReversal.customerId = "theCustomerId";
            depositReversal.litleTxnId = "123";

            String actual = depositReversal.Serialize();
            String expected = @"
            <depositReversal id=""theId"" customerId=""theCustomerId"" reportGroup=""theReportGroup"">
            <litleTxnId>123</litleTxnId>
            </depositReversal>";
            Assert.AreEqual(expected, actual);
        }
        public depositReversalResponse DepositReversal(depositReversal depositReversal)
        {
            litleOnlineRequest request = createLitleOnlineRequest();
            request.depositReversal = depositReversal;

            litleOnlineResponse response = sendToLitle(request);
            depositReversalResponse depositReversalResponse = response.depositReversalResponse;
            return depositReversalResponse;
        }