Esempio n. 1
0
 public void _010_TestSaleShipped()
 {
     try
     {
         var dictionary = new Dictionary <string, string>();
         dictionary.Add("sale_id", sale_id);
         dictionary.Add("tracking_number", "123");
         var result = TwocheckoutSale.Ship(dictionary);
         Assert.IsInstanceOf <TwocheckoutResponse>(result);
     }
     catch (TwocheckoutException e)
     {
         Assert.IsInstanceOf <TwocheckoutException>(e);
     }
 }
Esempio n. 2
0
 public void _006_TestSaleRefund()
 {
     try
     {
         var dictionary = new Dictionary <string, string>();
         dictionary.Add("sale_id", sale_id);
         dictionary.Add("comment", "test refund");
         dictionary.Add("category", "5");
         var result = TwocheckoutSale.Refund(dictionary);
         Assert.IsInstanceOf <TwocheckoutResponse>(result);
     }
     catch (TwocheckoutException e)
     {
         Assert.IsInstanceOf <TwocheckoutException>(e);
     }
 }