aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-12-17 23:49:16 +0800
committerGitHub <noreply@github.com>2020-12-17 23:49:16 +0800
commit3b3c7c170f0070b0db85834b6c913b9060996d1d (patch)
treef5ce5a6ffebab52a4a990faa0d12937244cc3185 /BackEnd/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs
parent828da7516df1a7612c3b24b4a27ba680eaf821f8 (diff)
parent5cbc306fc82bf14157ced4ff8b935191d20dae5d (diff)
downloadtimeline-3b3c7c170f0070b0db85834b6c913b9060996d1d.tar.gz
timeline-3b3c7c170f0070b0db85834b6c913b9060996d1d.tar.bz2
timeline-3b3c7c170f0070b0db85834b6c913b9060996d1d.zip
Merge pull request #192 from crupest/highlight-timeline
Highlight timeline.
Diffstat (limited to 'BackEnd/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs')
-rw-r--r--BackEnd/Timeline.Tests/IntegratedTests/IntegratedTestBase.cs4
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;