public void SendPayment_TinkoffPaymentStatusIsCorrect_ReturnedTinkoffPaymentResultErrorAlreadyPayd() { //TinkoffPayment payment = new TinkoffPayment(); var result = TinkoffPayment.SendPayment("~success", "new test method", 200); Assert.AreEqual(result.PaymentResult, TinkoffPaymentResult.Failure); }
public void SendPayment_TinkoffPaymentStatusIsCorrect_ReturnedTinkoffPaymentResultErrorTooSmallPrice() { //TinkoffPayment payment = new TinkoffPayment(); var result = TinkoffPayment.SendPayment("too_small_price", "new test method", 10); Assert.AreEqual(result.PaymentResult, TinkoffPaymentResult.Failure); }
public void SendPayment_TinkoffPaymentStatusIsCorrect_ReturnedTinkoffPaymentResultErrorOrderIdNull() { //TinkoffPayment payment = new TinkoffPayment(); var result = TinkoffPayment.SendPayment(null, "new test method", 200); Assert.AreEqual(result.PaymentResult, TinkoffPaymentResult.Failure); }
public void SendPayment_TinkoffPaymentStatusIsCorrect_ReturnedTinkoffPaymentResultNew() { //TinkoffPayment payment = new TinkoffPayment(); var result = TinkoffPayment.SendPayment("newtest", "new test method", 200); Assert.AreEqual(result.PaymentResult, TinkoffPaymentResult.InProgress); }