diff options
author | crupest <crupest@outlook.com> | 2020-02-02 00:31:33 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-02-02 00:31:33 +0800 |
commit | e71cb8e368d081747014f1434c5ee157660783f2 (patch) | |
tree | 2d161307f76b29c52c60048cf4f65d354a967df3 /Timeline.Tests | |
parent | 673fa5f0645308bfa8d17dc4e0e145bbaf239329 (diff) | |
download | timeline-e71cb8e368d081747014f1434c5ee157660783f2.tar.gz timeline-e71cb8e368d081747014f1434c5ee157660783f2.tar.bz2 timeline-e71cb8e368d081747014f1434c5ee157660783f2.zip |
...
Diffstat (limited to 'Timeline.Tests')
-rw-r--r-- | Timeline.Tests/IntegratedTests/PersonalTimelineTest.cs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Timeline.Tests/IntegratedTests/PersonalTimelineTest.cs b/Timeline.Tests/IntegratedTests/PersonalTimelineTest.cs index 81446fd8..cc170a98 100644 --- a/Timeline.Tests/IntegratedTests/PersonalTimelineTest.cs +++ b/Timeline.Tests/IntegratedTests/PersonalTimelineTest.cs @@ -25,7 +25,7 @@ namespace Timeline.Tests.IntegratedTests using var client = await CreateDefaultClient(); var res = await client.GetAsync("users/user1/timeline"); var body = res.Should().HaveStatusCode(200) - .And.HaveJsonBody<BaseTimelineInfo>().Which; + .And.HaveJsonBody<TimelineInfo>().Which; body.Owner.Should().BeEquivalentTo(UserInfos[1]); body.Visibility.Should().Be(TimelineVisibility.Register); body.Description.Should().Be(""); @@ -109,7 +109,7 @@ namespace Timeline.Tests.IntegratedTests { var res = await client.GetAsync("users/user1/timeline"); var body = res.Should().HaveStatusCode(200) - .And.HaveJsonBody<BaseTimelineInfo>() + .And.HaveJsonBody<TimelineInfo>() .Which.Description.Should().Be(description); } @@ -120,21 +120,21 @@ namespace Timeline.Tests.IntegratedTests var res = await client.PatchAsJsonAsync("users/user1/timeline", new TimelinePatchRequest { Description = mockDescription }); res.Should().HaveStatusCode(200) - .And.HaveJsonBody<BaseTimelineInfo>().Which.Description.Should().Be(mockDescription); + .And.HaveJsonBody<TimelineInfo>().Which.Description.Should().Be(mockDescription); await AssertDescription(mockDescription); } { var res = await client.PatchAsJsonAsync("users/user1/timeline", new TimelinePatchRequest { Description = null }); res.Should().HaveStatusCode(200) - .And.HaveJsonBody<BaseTimelineInfo>().Which.Description.Should().Be(mockDescription); + .And.HaveJsonBody<TimelineInfo>().Which.Description.Should().Be(mockDescription); await AssertDescription(mockDescription); } { var res = await client.PatchAsJsonAsync("users/user1/timeline", new TimelinePatchRequest { Description = "" }); res.Should().HaveStatusCode(200) - .And.HaveJsonBody<BaseTimelineInfo>().Which.Description.Should().Be(""); + .And.HaveJsonBody<TimelineInfo>().Which.Description.Should().Be(""); await AssertDescription(""); } } @@ -149,7 +149,7 @@ namespace Timeline.Tests.IntegratedTests { var res = await client.GetAsync(getUrl); res.Should().HaveStatusCode(200) - .And.HaveJsonBody<BaseTimelineInfo>() + .And.HaveJsonBody<TimelineInfo>() .Which.Members.Should().NotBeNull().And.BeEquivalentTo(members); } @@ -157,7 +157,7 @@ namespace Timeline.Tests.IntegratedTests { var res = await client.GetAsync(getUrl); res.Should().HaveStatusCode(200) - .And.HaveJsonBody<BaseTimelineInfo>() + .And.HaveJsonBody<TimelineInfo>() .Which.Members.Should().NotBeNull().And.BeEmpty(); } |