public void testDeactivate()
        {
            var deactivate = new deactivate();

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

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

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

            var mockedCommunication = mock.Object;

            litle.setCommunication(mockedCommunication);
            var deactivateResponse = litle.Deactivate(deactivate);

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

            var response = _litle.Deactivate(deactivate);

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