BeeCloud.Tests.BCPayTests.handlePayQueryByIdResultTest C# (CSharp) Method

handlePayQueryByIdResultTest() private method

private handlePayQueryByIdResultTest ( ) : void
return void
        public void handlePayQueryByIdResultTest()
        {
            string respString = "{\"result_msg\":\"OK\",\"err_detail\":\"\",\"count\":10,\"result_code\":0,\"pay\":{\"create_time\":1450775961675,\"channel\":\"ALI\",\"bill_no\":\"b91d4b1efbfb2c0c4ace\",\"optional\":\"{\\\"optionalKey1\\\":\\\"optionalValue1\\\",\\\"optionalKey2\\\":\\\"optionalValue2\\\"}\",\"revert_result\":false,\"title\":\"测试通过APICloud支付宝调用\",\"spay_result\":true,\"total_fee\":1,\"trade_no\":\"2015122221001004460089671321\",\"id\":\"379f118e-d8a5-45d3-9a3f-6278a1365fb4\",\"sub_channel\":\"ALI_APP\",\"message_detail\":\"{\\\"bc_appid\\\":\\\"c37d661d-7e61-49ea-96a5-68c34e83db3b_379f118e-d8a5-45d3-9a3f-6278a1365fb4\\\",\\\"discount\\\":\\\"0.00\\\",\\\"payment_type\\\":\\\"1\\\",\\\"subject\\\":\\\"测试通过APICloud支付宝调用\\\",\\\"trade_no\\\":\\\"2015122221001004460089671321\\\",\\\"buyer_email\\\":\\\"[email protected]\\\",\\\"gmt_create\\\":\\\"2015-12-22 17:19:37\\\",\\\"notify_type\\\":\\\"trade_status_sync\\\",\\\"quantity\\\":\\\"1\\\",\\\"out_trade_no\\\":\\\"b91d4b1efbfb2c0c4ace\\\",\\\"seller_id\\\":\\\"2088711322600312\\\",\\\"notify_time\\\":\\\"2015-12-22 17:19:37\\\",\\\"trade_status\\\":\\\"TRADE_SUCCESS\\\",\\\"is_total_fee_adjust\\\":\\\"N\\\",\\\"total_fee\\\":\\\"0.01\\\",\\\"gmt_payment\\\":\\\"2015-12-22 17:19:37\\\",\\\"seller_email\\\":\\\"[email protected]\\\",\\\"price\\\":\\\"0.01\\\",\\\"buyer_id\\\":\\\"2088902348242460\\\",\\\"notify_id\\\":\\\"340039c8939c024c7288cb7d105664ejjs\\\",\\\"use_coupon\\\":\\\"N\\\",\\\"sign_type\\\":\\\"RSA\\\",\\\"sign\\\":\\\"cYbY+l42o+SDZ7eaAZnBN2Ueo98fNgitVjz9vRzfZ32bb/jUG1rNrTN0u5Pc3jAqn0ol5NrS1Mt9YaNkqh8zjSTLURIDaEr81If3jgUd3B3ihCnWG+7oCyF32gEf7Touxu/0/lp4DIRHTUV2S484ryLGtRkI8Ww2K3XSdhqeERo=\\\"}\",\"refund_result\":false}}";
            BCBill actual = BCPay.handlePayQueryByIdResult(respString);
            Assert.IsNotNull(actual.id);
            Assert.IsNotNull(actual.title);
            Assert.IsNotNull(actual.totalFee);
            Assert.IsNotNull(actual.billNo);
            Assert.IsNotNull(actual.result);
            Assert.IsNotNull(actual.channel);
            Assert.IsNotNull(actual.tradeNo);
            Assert.IsNotNull(actual.optional);
            Assert.IsNotNull(actual.messageDetail);
            Assert.IsNotNull(actual.revertResult);
            Assert.IsNotNull(actual.refundResult);
        }