Пример #1
0
        public void CheckoutpaymentgatewayPaymentrequestPostTest()
        {
            CheckoutPaymentGatewayModelsPaymentRequest body = null;
            var response = instance.CheckoutpaymentgatewayPaymentrequestPost(body);

            Assert.IsInstanceOf <CheckoutPaymentGatewayModelsPaymentResponse>(response, "response is CheckoutPaymentGatewayModelsPaymentResponse");
        }
Пример #2
0
        public void CheckoutpaymentgatewayPaymentrequestPostTest()
        {
            var genPayment = new PaymentsSetup(SetupMockLogger.Object, MockPaymentApi.Object);

            var response = instance.CheckoutpaymentgatewayPaymentrequestPost(genPayment.GeneratePayment("5425233430109903"));

            Assert.IsInstanceOf <CheckoutPaymentGatewayModelsPaymentResponse>(response, "response is CheckoutPaymentGatewayModelsPaymentResponse");
            Assert.IsNotNull(response);
            Assert.IsNotNull(response.Amount);
            Assert.IsNotNull(response.CardExpiryDate);
            Assert.IsNotNull(response.CardNumber);
            Assert.IsNotNull(response.CurrencyCode);
            Assert.IsNotNull(response.Cvc);
            Assert.IsNotNull(response.FullName);
            Assert.IsNotNull(response.Id);
            Assert.IsNotNull(response.IsSuccessful);
            Assert.IsNotNull(response.RequestDate);
            Assert.IsTrue(response.IsSuccessful);
        }