public void testUnload()
        {
            var unload = new unload();

            unload.orderId     = "2";
            unload.orderSource = orderSourceType.ecommerce;
            unload.card        = new cardType();

            var mock = new Mock <Communications>(_memoryStreams);

            mock.Setup(
                Communications =>
                Communications.HttpPost(
                    It.IsRegex(".*?<litleOnlineRequest.*?<unload.*?<orderId>2</orderId>.*?</unload>.*?",
                               RegexOptions.Singleline), It.IsAny <Dictionary <string, string> >()))
            .Returns(
                "<litleOnlineResponse version='8.21' response='0' message='Valid Format' xmlns='http://www.litle.com/schema'><unloadResponse><litleTxnId>123</litleTxnId></unloadResponse></litleOnlineResponse>");

            var mockedCommunication = mock.Object;

            litle.setCommunication(mockedCommunication);
            var unloadResponse = litle.Unload(unload);

            Assert.AreEqual("123", unloadResponse.litleTxnId);
        }
        public void SimpleUnload()
        {
            var unload = new unload
            {
                id          = "1",
                reportGroup = "Planets",
                orderId     = "12344",
                amount      = 1500,
                orderSource = orderSourceType.ecommerce,
                card        = new giftCardCardType
                {
                    type              = methodOfPaymentTypeEnum.GC,
                    number            = "414100000000000000",
                    cardValidationNum = "123",
                    expDate           = "1215"
                }
            };

            var response = _litle.Unload(unload);

            Assert.AreEqual("000", response.response);
        }