|
|
|
@ -5,6 +5,7 @@ using Microsoft.Extensions.DependencyInjection; |
|
|
|
using Shouldly; |
|
|
|
using Volo.Abp.Application.Dtos; |
|
|
|
using Volo.Abp.Domain.Repositories; |
|
|
|
using Volo.Abp.Http.Client; |
|
|
|
using Volo.Abp.Http.Modeling; |
|
|
|
using Volo.Abp.TestApp.Application; |
|
|
|
using Volo.Abp.TestApp.Application.Dto; |
|
|
|
@ -103,6 +104,15 @@ namespace Volo.Abp.Http.DynamicProxying |
|
|
|
personInDb.Age.ShouldBe(person.Age); |
|
|
|
} |
|
|
|
|
|
|
|
[Fact] |
|
|
|
public async Task GetWithAuthorized() |
|
|
|
{ |
|
|
|
(await Assert.ThrowsAsync<AbpRemoteCallException>(async () => |
|
|
|
{ |
|
|
|
await _peopleAppService.GetWithAuthorized(); |
|
|
|
})).Error.Message.ShouldContain("Authorization"); |
|
|
|
} |
|
|
|
|
|
|
|
[Fact] |
|
|
|
public async Task GetWithComplexType() |
|
|
|
{ |
|
|
|
|