diff options
author | crupest <crupest@outlook.com> | 2020-11-27 00:07:09 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-11-27 00:07:09 +0800 |
commit | 7883590a7a0c5c5c4e5cff6290e26c64e1258a25 (patch) | |
tree | 28e1ad4d02c4054e13b6cf539c64aba8d00df3e5 /BackEnd/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs | |
parent | ce85af942c64fc3bad4e4502d683f730c882de96 (diff) | |
download | timeline-7883590a7a0c5c5c4e5cff6290e26c64e1258a25.tar.gz timeline-7883590a7a0c5c5c4e5cff6290e26c64e1258a25.tar.bz2 timeline-7883590a7a0c5c5c4e5cff6290e26c64e1258a25.zip |
refactor: ...
Diffstat (limited to 'BackEnd/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs')
-rw-r--r-- | BackEnd/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/BackEnd/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs b/BackEnd/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs index e426ac98..82aed24e 100644 --- a/BackEnd/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs +++ b/BackEnd/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs @@ -103,8 +103,8 @@ namespace Timeline.Tests.IntegratedTests public async Task<HttpClient> CreateClientWithCredential(string username, string password, bool setApiBase = true)
{
var client = await CreateDefaultClient(setApiBase);
- var res = await client.TestPostAsync<CreateTokenResponse>("token/create",
- new CreateTokenRequest { Username = username, Password = password });
+ var res = await client.TestPostAsync<HttpCreateTokenResponse>("token/create",
+ new HttpCreateTokenRequest { Username = username, Password = password });
var token = res.Token;
client.DefaultRequestHeaders.Add("Authorization", "Bearer " + token);
return client;
|