Advertisement
Guest User

Untitled

a guest
Apr 15th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. [Test]
  2. public void _004_TestSaleStop()
  3. {
  4.  
  5. TwoCheckoutConfig.ApiUsername = "username";
  6. TwoCheckoutConfig.ApiPassword = "password";
  7. TwoCheckoutConfig.Sandbox = true;
  8.  
  9.  
  10. try
  11. {
  12.  
  13. var ServiceObject = new SaleService();
  14. var ArgsObject = new SaleStopServiceOptions();
  15. ArgsObject.sale_id = 9093729066354;
  16. var result = ServiceObject.Stop(ArgsObject);
  17. Assert.IsInstanceOf<TwoCheckoutResponse>(result);
  18. }
  19. catch (TwoCheckoutException e)
  20. {
  21. Assert.IsInstanceOf<TwoCheckoutException>(e);
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement