コード例 #1
0
        public async Task GetBalance()
        {
            var test = CreateHttpTest()
                       .ExpectUriPath("accounts/balance")
                       .ResponseBodyFromFile("account/account_balance.json");

            var expected = test.ResponseBody <AccountBalanceInfo>();

            var operations = new AccountOperations(test.HttpClient, BaseUri, ClientId, ClientSecret, ReloadlyEnvironment.Sandbox);
            var actual     = await operations.GetBalanceAsync();

            Verify(expected, actual);
        }