public async Task GetAccountsAsyncTest() { IInvestecOpenApiService service = this._serviceProvider.GetService <IInvestecOpenApiService>(); object serviceResponse = await service.GetAccountsAsync(); if (serviceResponse is InvestecResponse response) { Assert.IsNotNull(response.Data.Accounts); } else { Assert.Fail(); } }
public async Task RequestAuthTokenAsyncTest() { IInvestecOpenApiService service = this._serviceProvider.GetService <IInvestecOpenApiService>(); object serviceResponse = await service.RequestAuthTokenAsync(); if (serviceResponse is AccessTokenResponse response) { Assert.IsNotNull(response.AccessToken); } else { Assert.Fail(); } }