Exemplo n.º 1
0
        public void SendPayment_TinkoffPaymentStatusIsCorrect_ReturnedTinkoffPaymentResultErrorAlreadyPayd()
        {
            //TinkoffPayment payment = new TinkoffPayment();

            var result = TinkoffPayment.SendPayment("~success", "new test method", 200);

            Assert.AreEqual(result.PaymentResult, TinkoffPaymentResult.Failure);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        public void SendPayment_TinkoffPaymentStatusIsCorrect_ReturnedTinkoffPaymentResultErrorOrderIdNull()
        {
            //TinkoffPayment payment = new TinkoffPayment();

            var result = TinkoffPayment.SendPayment(null, "new test method", 200);

            Assert.AreEqual(result.PaymentResult, TinkoffPaymentResult.Failure);
        }
Exemplo n.º 4
0
        public void SendPayment_TinkoffPaymentStatusIsCorrect_ReturnedTinkoffPaymentResultNew()
        {
            //TinkoffPayment payment = new TinkoffPayment();

            var result = TinkoffPayment.SendPayment("newtest", "new test method", 200);

            Assert.AreEqual(result.PaymentResult, TinkoffPaymentResult.InProgress);
        }