public void TakesAnEndPointAndVendorName() { var request = new SagePay.Request.Refund.WebSageRefund("bob", TEST_URL); Assert.False(string.IsNullOrWhiteSpace(request.Url)); }
public void CurrencyTypes(Currency currency) { var request = new SagePay.Request.Refund.WebSageRefund(SageConfiguration.CONFIG_TYPE, TEST_URL); request.Transaction = RefundRequest.SampleRequest(); request.Transaction.Currency = currency; var encode = request.Encode(); Assert.Equal(encode["Currency"], currency.ToString().ToUpper()); }
public void TakesAnEndPointAndSection() { var request = new SagePay.Request.Refund.WebSageRefund(SageConfiguration.CONFIG_TYPE, TEST_URL); Assert.False(string.IsNullOrWhiteSpace(request.Url)); }
public void AllValuesInCollection(string key) { var request = new SagePay.Request.Refund.WebSageRefund(SageConfiguration.CONFIG_TYPE, TEST_URL); request.Transaction = RefundRequest.SampleRequest(); var encode = request.Encode(); Assert.NotNull(encode[key]); Assert.False(string.IsNullOrWhiteSpace(encode[key])); }