示例#1
0
        public void Garanti_GetPaymentParameterResult_UnSuccess()
        {
            var provider        = new GarantiPaymentProvider();
            var parameterResult = provider.GetPaymentParameters(null);

            Assert.False(parameterResult.Success);
        }
示例#2
0
        public void Garanti_GetPaymentParameterResult_Success()
        {
            var provider        = new GarantiPaymentProvider();
            var parameterResult = provider.GetPaymentParameters(new PaymentRequest
            {
                CardHolderName    = "Sefa Can",
                CardNumber        = "4508-0345-0803-4509",
                ExpireMonth       = 12,
                ExpireYear        = 21,
                CvvCode           = "000",
                Installment       = 1,
                TotalAmount       = 1.60m,
                CustomerIpAddress = string.Empty,
                CurrencyIsoCode   = "949",
                LanguageIsoCode   = "tr",
                OrderNumber       = Guid.NewGuid().ToString()
            });

            Assert.True(parameterResult.Success);
        }