示例#1
0
        public void handleApproveRefundResultTest()
        {
            string respString            = "{\"result_msg\":\"OK\",\"resultCode\":0,\"errMsg\":\"OK:\",\"err_detail\":\"\",\"result_code\":0,\"url\":\"https://mapi.alipay.com/gateway.do\",\"result_map\":{\"001\":\"OK\",\"002\":\"OK\"}}";
            BCApproveRefundResult result = BCPay.handleApproveRefundResult(respString, "ALI");

            Assert.IsNotNull(result.url);
            Assert.IsTrue(result.status["001"] == "OK");
        }