示例#1
0
 public void TakesAnEndPointAndVendorName()
 {
     var request = new SagePay.Request.Refund.WebSageRefund("bob", TEST_URL);
     Assert.False(string.IsNullOrWhiteSpace(request.Url));
 }
示例#2
0
            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());
            }
示例#3
0
 public void TakesAnEndPointAndSection()
 {
     var request = new SagePay.Request.Refund.WebSageRefund(SageConfiguration.CONFIG_TYPE, TEST_URL);
     Assert.False(string.IsNullOrWhiteSpace(request.Url));
 }
示例#4
0
            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]));
            }