Beispiel #1
0
            public void EmitsAResponseIfValid()
            {
                var request = new SagePay.Request.Refund.OfflineSageRefund();
                request.Transaction = RefundRequest.SampleRequest();
                request.Validate();

                var response = request.Send();
                Assert.NotNull(response);
            }
Beispiel #2
0
            public void ThInlineDatasAnExceptionIfInvalid()
            {
                var request = new SagePay.Request.Refund.OfflineSageRefund();

                Assert.Throws<SageException>(() =>  request.Send());
            }