public void OrderVoidPayment() { // TODO uncomment below to test the method and replace null with proper value string id = null; var authorization = authorizationApi.AuthorizationCreateToken("https://auth-dev.partpay.co.nz"); var createOrderRequest = CreateRequest(CreateOrderRequest.PaymentFlowEnum.Authorization); var createOrderResponse = instance.OrderCreate(authorization, "IK008", createOrderRequest); id = createOrderResponse.OrderId; System.Threading.Thread.Sleep(2000); // Give the system time to complete the creation of the order var order = instance.OrderGet(authorization, id); var voidRequest = new CreateVoidRequest(50); var response = instance.OrderVoid(authorization, id, "IK009", voidRequest); Assert.IsInstanceOf <VoidOrder>(response, "response is VoidOrder"); }