public void ReturnsErrors() { var request = new SagePay.Request.Refund.OfflineSageRefund(); request.Transaction = new SagePay.Request.Refund.RefundRequest(); var errors = request.Validate(); Assert.NotEmpty(errors); }
public void SetsIsValid() { var request = new SagePay.Request.Refund.OfflineSageRefund(); request.Transaction = RefundRequest.SampleRequest(); var errors = request.Validate(); Assert.Equal(0, errors.Count); Assert.True(request.IsValid); }
public void EmitsAResponseIfValid() { var request = new SagePay.Request.Refund.OfflineSageRefund(); request.Transaction = RefundRequest.SampleRequest(); request.Validate(); var response = request.Send(); Assert.NotNull(response); }