/* Shows how to perform an HTTP request to the API using ABP's dynamic c# proxy * feature. It is just simple as calling a local service method. * Authorization and HTTP request details are handled by the ABP framework. */ private async Task TestWithDynamicProxiesAsync() { Console.WriteLine(); Console.WriteLine($"***** {nameof(TestWithDynamicProxiesAsync)} *****"); var result = await _orderAppService.GetAsync(); Console.WriteLine("Result: " + result.Value); result = await _orderAppService.GetAuthorizedAsync(); Console.WriteLine("Result (authorized): " + result.Value); }
public async Task GetAuthorizedAsync() { var result = await _orderAppService.GetAuthorizedAsync(); result.Value.ShouldBe(42); }