diff options
author | crupest <crupest@outlook.com> | 2020-01-31 15:21:58 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-01-31 15:21:58 +0800 |
commit | 0dc8b59b435f978428c73bc28e2a424bc413c562 (patch) | |
tree | bbbac2fe1a6d3ce4c5d2c32553f6d06cb3209172 /Timeline.Tests/IntegratedTests/PersonalTimelineTest.cs | |
parent | eaf6d126db56b7caedd311033403b1f721bb80bc (diff) | |
download | timeline-0dc8b59b435f978428c73bc28e2a424bc413c562.tar.gz timeline-0dc8b59b435f978428c73bc28e2a424bc413c562.tar.bz2 timeline-0dc8b59b435f978428c73bc28e2a424bc413c562.zip |
Combine two user info types.
Diffstat (limited to 'Timeline.Tests/IntegratedTests/PersonalTimelineTest.cs')
-rw-r--r-- | Timeline.Tests/IntegratedTests/PersonalTimelineTest.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Timeline.Tests/IntegratedTests/PersonalTimelineTest.cs b/Timeline.Tests/IntegratedTests/PersonalTimelineTest.cs index dacfea62..f3d6b172 100644 --- a/Timeline.Tests/IntegratedTests/PersonalTimelineTest.cs +++ b/Timeline.Tests/IntegratedTests/PersonalTimelineTest.cs @@ -26,7 +26,7 @@ namespace Timeline.Tests.IntegratedTests var res = await client.GetAsync("users/user1/timeline"); var body = res.Should().HaveStatusCode(200) .And.HaveJsonBody<BaseTimelineInfo>().Which; - body.Owner.Should().BeEquivalentTo(UserInfoList[1]); + body.Owner.Should().BeEquivalentTo(UserInfos[1]); body.Visibility.Should().Be(TimelineVisibility.Register); body.Description.Should().Be(""); body.Members.Should().NotBeNull().And.BeEmpty(); @@ -169,7 +169,7 @@ namespace Timeline.Tests.IntegratedTests var res = await client.PutAsync("/users/user1/timeline/members/user2", null); res.Should().HaveStatusCode(200); } - await AssertMembers(new List<UserInfo> { UserInfoList[2] }); + await AssertMembers(new List<UserInfo> { UserInfos[2] }); { var res = await client.DeleteAsync("/users/user1/timeline/members/user2"); res.Should().BeDelete(true); @@ -452,7 +452,7 @@ namespace Timeline.Tests.IntegratedTests .Which; body.Should().NotBeNull(); body.Content.Should().Be(mockContent); - body.Author.Should().BeEquivalentTo(UserInfoList[1]); + body.Author.Should().BeEquivalentTo(UserInfos[1]); createRes = body; } { @@ -472,7 +472,7 @@ namespace Timeline.Tests.IntegratedTests .Which; body.Should().NotBeNull();
body.Content.Should().Be(mockContent2); - body.Author.Should().BeEquivalentTo(UserInfoList[1]); + body.Author.Should().BeEquivalentTo(UserInfos[1]); body.Time.Should().BeCloseTo(mockTime2, 1000); createRes2 = body; } |