public static EntityMock<Sale3dSuccessResponse> CreateSale3dSyncSuccessResponse()
        {
            var successResponse = new Sale3dSuccessResponse()
            {
                TransactionType = TransactionTypes.Sale3d,
                Amount = 90,
                Currency = Iso4217CurrencyCodes.USD,
                AuthorizationCode = "345678",
                Descriptor = "descriptor one",
                Status = "approved",
                ResponseCode = "00",
                UniqueId = "5e2cbbad71d2b13432323153c208223a",
                TransactionId = "119643250547501c79d8295",
                Mode = "live",
                ProxyTime = "2007-11-30T14:21:48Z",
                SentToAcquirer = true
            };

            var successResponseXml =
                                    "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" +
                                    "<payment_response>" +
                                    "<transaction_type>sale3d</transaction_type>" +
                                    "<status>approved</status>" +
                                    "<authorization_code>345678</authorization_code>" +
                                    "<response_code>00</response_code>" +
                                    "<unique_id>5e2cbbad71d2b13432323153c208223a</unique_id>" +
                                    "<transaction_id>119643250547501c79d8295</transaction_id>" +
                                    "<mode>live</mode>" +
                                    "<timestamp>2007-11-30T14:21:48Z</timestamp>" +
                                    "<descriptor>descriptor one</descriptor>" +
                                    "<amount>9000</amount>" +
                                    "<currency>USD</currency>" +
                                    "<sent_to_acquirer>true</sent_to_acquirer>" +
                                    "</payment_response>";

            return new EntityMock<Sale3dSuccessResponse>(successResponse, successResponseXml);
        }
        public static EntityMock<Sale3dSuccessResponse> CreateSale3dAsyncSuccessResponse()
        {
            var successResponse = new Sale3dSuccessResponse()
            {
                TransactionType = TransactionTypes.Sale3d,
                Amount = 90,
                Currency = Iso4217CurrencyCodes.USD,
                AuthorizationCode = "345678",
                Descriptor = "descriptor one",
                Status = "pending_async",
                ResponseCode = "00",
                UniqueId = "5e2cbbad71d2b13432323153c208223a",
                TransactionId = "119643250547501c79d8295",
                Mode = "live",
                ProxyTime = "2007-11-30T14:21:48Z",
                RedirectUrl = "https://gateway/8245201941/30ec0f2387",
                PartialApproval = true
            };

            var successResponseXml =
                                    "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" +
                                    "<payment_response>" +
                                    "<transaction_type>sale3d</transaction_type>" +
                                    "<status>pending_async</status>" +
                                    "<unique_id>5e2cbbad71d2b13432323153c208223a</unique_id>" +
                                    "<transaction_id>119643250547501c79d8295</transaction_id>" +
                                    "<redirect_url>https://gateway/8245201941/30ec0f2387</redirect_url>" +
                                    "<mode>live</mode>" +
                                    "<timestamp>2007-11-30T14:21:48Z</timestamp>" +
                                    "<descriptor>descriptor one</descriptor>" +
                                    "<amount>9000</amount>" +
                                    "<currency>USD</currency>" +
                                    "<partial_approval>true</partial_approval>" +
                                    "</payment_response>";

            return new EntityMock<Sale3dSuccessResponse>(successResponse, successResponseXml);
        }