diff options
author | 杨宇千 <crupest@outlook.com> | 2019-10-24 20:12:42 +0800 |
---|---|---|
committer | 杨宇千 <crupest@outlook.com> | 2019-10-24 20:12:42 +0800 |
commit | a0f3cd7599a48c14fb5492fb1c6e2dbd0a82fb45 (patch) | |
tree | 7ca5010a06829cc5fadea1ea17ae72d082fc344c /Timeline.Tests | |
parent | 280faac75b113d9a4bbecd7e4ea3499f1691ce61 (diff) | |
download | timeline-a0f3cd7599a48c14fb5492fb1c6e2dbd0a82fb45.tar.gz timeline-a0f3cd7599a48c14fb5492fb1c6e2dbd0a82fb45.tar.bz2 timeline-a0f3cd7599a48c14fb5492fb1c6e2dbd0a82fb45.zip |
...
Diffstat (limited to 'Timeline.Tests')
-rw-r--r-- | Timeline.Tests/UserAvatarServiceTest.cs | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/Timeline.Tests/UserAvatarServiceTest.cs b/Timeline.Tests/UserAvatarServiceTest.cs index 79fa6f5c..1f71f6f6 100644 --- a/Timeline.Tests/UserAvatarServiceTest.cs +++ b/Timeline.Tests/UserAvatarServiceTest.cs @@ -106,7 +106,7 @@ namespace Timeline.Tests Data = Encoding.ASCII.GetBytes($"mock{key}")
};
- private Avatar ToAvatar(UserAvatar entity)
+ private static Avatar ToAvatar(UserAvatar entity)
{
return new Avatar
{
@@ -115,7 +115,7 @@ namespace Timeline.Tests };
}
- private AvatarInfo ToAvatarInfo(UserAvatar entity)
+ private static AvatarInfo ToAvatarInfo(UserAvatar entity)
{
return new AvatarInfo
{
@@ -124,14 +124,6 @@ namespace Timeline.Tests };
}
- private void Set(UserAvatar to, UserAvatar from)
- {
- to.Type = from.Type;
- to.Data = from.Data;
- to.ETag = from.ETag;
- to.LastModified = from.LastModified;
- }
-
private readonly Mock<IDefaultUserAvatarProvider> _mockDefaultAvatarProvider;
private readonly Mock<IUserAvatarValidator> _mockValidator;
private readonly Mock<IETagGenerator> _mockETagGenerator;
|