public void payRequestHelpTest()
 {
     var rId = "normal";
     var test = new inTimePayControllerHelpController();
     var res = test.payRequestHelp(rId);
     var assR = new inTimeRes { PaymentResult = "ok", PayMethod = payMethod.sync };
     Assert.AreEqual(res.PaymentResult, assR.PaymentResult);
     Assert.AreEqual(res.PayMethod, assR.PayMethod);
 }
 public void payRequestHelpForTestCase2Test()
 {
     var rId = "test2";
     var bankPara = new BankParaWarp { ProcessTime = 5500, Result = "failed" };
     var creatBillPara = new createBillParaWarp { Method = payMethod.sync, BankPara = bankPara };
     var testPara = new testParameter { ReqId = rId, WaitTime = 5000, CreatBillPara = creatBillPara };
     var test = new inTimePayControllerHelpController();
     var res = test.payRequestHelpForTest(rId, testPara);
     Assert.IsTrue(res == null);
 }
 public void payRequestHelpForTestCase3Test()
 {
     var rId = "test3";
     var bankPara = new BankParaWarp { ProcessTime = 2000, Result = string.Empty };
     var creatBillPara = new createBillParaWarp { Method = payMethod.async, BankPara = bankPara };
     var testPara = new testParameter { ReqId = rId, WaitTime = 5000, CreatBillPara = creatBillPara };
     var test = new inTimePayControllerHelpController();
     var res = test.payRequestHelpForTest(rId, testPara);
     var assR = new inTimeRes { PaymentResult = string.Empty, PayMethod = payMethod.async };
     Assert.AreEqual(res.PaymentResult, assR.PaymentResult);
     Assert.AreEqual(res.PayMethod, assR.PayMethod);
 }