Ejemplo n.º 1
0
        public void VerifyPaymentResponse_ShouldThrowPaymentDeclinedException_OnInvalidResponseCode(string responseCode)
        {
            var result = Assert.Throws <PaymentDeclinedException>(() => _civicaPayProvider.VerifyPaymentResponse(responseCode));

            Assert.Equal($"CivicaPayProvider::Declined payment with response code: {responseCode}", result.Message);
        }