diff options
author | crupest <crupest@outlook.com> | 2020-07-10 16:10:17 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-07-10 16:10:17 +0800 |
commit | 29b3da2aa1f1b4a8514ffea6dc57dda8d8a98170 (patch) | |
tree | 7825438445e25ccb5fa574b91332d081029b7ce3 /Timeline/Models/Http | |
parent | bac1c733f276ad0f449b4c60e5662d0413cd2121 (diff) | |
download | timeline-29b3da2aa1f1b4a8514ffea6dc57dda8d8a98170.tar.gz timeline-29b3da2aa1f1b4a8514ffea6dc57dda8d8a98170.tar.bz2 timeline-29b3da2aa1f1b4a8514ffea6dc57dda8d8a98170.zip |
Add unit tests.
Diffstat (limited to 'Timeline/Models/Http')
-rw-r--r-- | Timeline/Models/Http/Timeline.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Timeline/Models/Http/Timeline.cs b/Timeline/Models/Http/Timeline.cs index aad9aa7b..5404d561 100644 --- a/Timeline/Models/Http/Timeline.cs +++ b/Timeline/Models/Http/Timeline.cs @@ -128,8 +128,7 @@ namespace Timeline.Models.Http public TimelineInfoAutoMapperProfile()
{
CreateMap<Timeline, TimelineInfo>().ForMember(u => u._links, opt => opt.MapFrom<TimelineInfoLinksValueResolver>());
- CreateMap<TimelinePost, TimelinePostInfo>().ForMember(p => p.Content, opt => opt.MapFrom<TimelinePostContentResolver>())
- .ForMember(p => p.Deleted, opt => opt.MapFrom((source, dest) => { return source.Content == null; }));
+ CreateMap<TimelinePost, TimelinePostInfo>().ForMember(p => p.Content, opt => opt.MapFrom<TimelinePostContentResolver>());
CreateMap<TimelinePatchRequest, TimelineChangePropertyRequest>();
}
}
|