public void TestSimple()
        {
            UnloadReversal unloadReversal = new UnloadReversal();
            unloadReversal.ID = "a";
            unloadReversal.ReportGroup = "b";
            unloadReversal.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'><unloadReversalResponse><litleTxnId>123</litleTxnId></unloadReversalResponse></litleOnlineResponse>");

            Communications mockedCommunication = mock.Object;
            litle.SetCommunication(mockedCommunication);
            UnloadReversalResponse response = litle.UnloadReversal(unloadReversal);
            Assert.AreEqual(123, response.LitleTxnId);
        }
        public UnloadReversalResponse UnloadReversal(UnloadReversal unloadReversal)
        {
            LitleOnlineRequest request = CreateLitleOnlineRequest();
            request.UnloadReversal = unloadReversal;

            LitleOnlineResponse response = SendToLitle(request);
            return response.UnloadReversalResponse;
        }
        public void testUnloadReversal_Full()
        {
            var unloadReversal = new UnloadReversal
            {
                ID = "theId",
                ReportGroup = "theReportGroup",
                CustomerId = "theCustomerId",
                LitleTxnId = "123"
            };

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