diff options
author | crupest <crupest@outlook.com> | 2021-01-19 15:27:01 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-19 15:27:01 +0800 |
commit | 23433673f91c1b07c43c4b2280e29db45e8896b5 (patch) | |
tree | 455fbd07678b1b21a1bfa3ad7e3778b1957fd12f /BackEnd/Timeline.Tests/IntegratedTests/TimelineTest.cs | |
parent | a23b8af0b06be2ab58d1831a0a25a30d934ec1e2 (diff) | |
parent | fb6442f1716406c7a2da79e4a1cc42e23908d218 (diff) | |
download | timeline-23433673f91c1b07c43c4b2280e29db45e8896b5.tar.gz timeline-23433673f91c1b07c43c4b2280e29db45e8896b5.tar.bz2 timeline-23433673f91c1b07c43c4b2280e29db45e8896b5.zip |
Merge pull request #211 from crupest/search
Back search feature.
Diffstat (limited to 'BackEnd/Timeline.Tests/IntegratedTests/TimelineTest.cs')
-rw-r--r-- | BackEnd/Timeline.Tests/IntegratedTests/TimelineTest.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/BackEnd/Timeline.Tests/IntegratedTests/TimelineTest.cs b/BackEnd/Timeline.Tests/IntegratedTests/TimelineTest.cs index 66261b36..4247e572 100644 --- a/BackEnd/Timeline.Tests/IntegratedTests/TimelineTest.cs +++ b/BackEnd/Timeline.Tests/IntegratedTests/TimelineTest.cs @@ -179,20 +179,20 @@ namespace Timeline.Tests.IntegratedTests {
{
using var client = await CreateDefaultClient();
- await client.TestPostAssertUnauthorizedAsync("timelines", new TimelineCreateRequest { Name = "aaa" });
+ await client.TestPostAssertUnauthorizedAsync("timelines", new HttpTimelineCreateRequest { Name = "aaa" });
}
{
using var client = await CreateClientAsUser();
- await client.TestPostAssertInvalidModelAsync("timelines", new TimelineCreateRequest { Name = "!!!" });
+ await client.TestPostAssertInvalidModelAsync("timelines", new HttpTimelineCreateRequest { Name = "!!!" });
{
- var body = await client.TestPostAsync<HttpTimeline>("timelines", new TimelineCreateRequest { Name = "aaa" });
+ var body = await client.TestPostAsync<HttpTimeline>("timelines", new HttpTimelineCreateRequest { Name = "aaa" });
body.Should().BeEquivalentTo(await client.GetTimelineAsync("aaa"));
}
- await client.TestPostAssertErrorAsync("timelines", new TimelineCreateRequest { Name = "aaa" }, errorCode: ErrorCodes.TimelineController.NameConflict);
+ await client.TestPostAssertErrorAsync("timelines", new HttpTimelineCreateRequest { Name = "aaa" }, errorCode: ErrorCodes.TimelineController.NameConflict);
}
}
|