示例#1
0
        public void TestCancel()
        {
            var notify = (Notify)_alipayGateway.BuildCancel(new Auxiliary
            {
                OutTradeNo = _outTradeNo
            });

            Assert.IsTrue(notify.Code.Contains("10000"));
            Trace.WriteLine(Util.SerializeObject(notify));
        }
示例#2
0
 public void TestCancel()
 {
     Assert.ThrowsException <GatewayException>(() =>
     {
         _alipayGateway.BuildCancel(new Auxiliary
         {
             OutTradeNo = _outTradeNo
         });
     });
 }