示例#1
0
 public async Task <EmptyResponse> SetCurrencyBalance(SandboxSetCurrencyBalanceRequest request,
                                                      CancellationToken cancellationToken = default)
 {
     return(await _rest.Post <SandboxSetCurrencyBalanceRequest, EmptyResponse>(
                "sandbox/currencies/balance", request,
                cancellationToken));
 }
示例#2
0
        public async Task Should_set_currency_balance()
        {
            var request = new SandboxSetCurrencyBalanceRequest()
            {
                Currency = Currency.Usd,
                Balance  = 100000
            };

            var response = await _sandboxService.SetCurrencyBalance(request, CancellationToken.None);

            ValidateRestResponse(response);
        }