public void handleJSAPIPayResultTest()
{
BCBill bill = new BCBill(BCPay.PayChannel.WX_JSAPI.ToString(), 1, BCUtil.GetUUID(), "dotNet自来水");
string respString = "{\"result_msg\":\"OK\",\"resultCode\":0,\"errMsg\":\"OK:\",\"err_detail\":\"\",\"result_code\":0,\"id\":\"41695744-f7f7-4926-8eee-2d5dfb745af0\",\"app_id\": \"wxa4ca6ed13385\",\"timestamp\": \"1450771041\", \"nonce_str\": \"znjsj7mw98q1drn251arrr30gq5gz0b1\", \"package\": \"prepay_id=wx20151222155721c70baa1e680187231678\", \"sign_type\": \"MD5\", \"pay_sign\": \"1E58DA3043C3D80AEC7A51B99E32\"}";
BCBill actual = BCPay.handlePayResult(respString, bill);
Assert.IsNotNull(actual.id);
Assert.IsNotNull(actual.timestamp);
Assert.IsNotNull(actual.noncestr);
Assert.IsNotNull(actual.package);
Assert.IsNotNull(actual.paySign);
Assert.IsNotNull(actual.signType);
}