Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Test]
- public void _004_TestSaleStop()
- {
- TwoCheckoutConfig.ApiUsername = "username";
- TwoCheckoutConfig.ApiPassword = "password";
- TwoCheckoutConfig.Sandbox = true;
- try
- {
- var ServiceObject = new SaleService();
- var ArgsObject = new SaleStopServiceOptions();
- ArgsObject.sale_id = 9093729066354;
- var result = ServiceObject.Stop(ArgsObject);
- Assert.IsInstanceOf<TwoCheckoutResponse>(result);
- }
- catch (TwoCheckoutException e)
- {
- Assert.IsInstanceOf<TwoCheckoutException>(e);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement