コード例 #1
0
        public void prepareRefundQueryByConditionParametersTest()
        {
            BeeCloud.registerApp("c5d1cba1-5e3f-4ba0-941d-9b0a371fe719", "39a7a518-9ac8-4a9e-87bc-7885f33cf18c", "e14ae2db-608c-4f8b-b863-c8c18953eef2", null);

            BCQueryRefundParameter para = new BCQueryRefundParameter();

            para.channel    = "ALI";
            para.limit      = 2;
            para.needDetail = true;
            para.skip       = 10;
            para.startTime  = 1000000000000;
            para.endTime    = 1100000000000;

            string paraString = "\"channel\":\"ALI\",\"bill_no\":null,\"refund_no\":null,\"start_time\":1000000000000,\"end_time\":1100000000000,\"need_approval\":null,\"need_detail\":true,\"skip\":10,\"limit\":2}";
            string actual     = BCPay.prepareRefundQueryByConditionParameters(para);

            Assert.IsTrue(actual.Contains(paraString));
        }