From 29b3da2aa1f1b4a8514ffea6dc57dda8d8a98170 Mon Sep 17 00:00:00 2001 From: crupest Date: Fri, 10 Jul 2020 16:10:17 +0800 Subject: Add unit tests. --- Timeline/Models/Timeline.cs | 1 + 1 file changed, 1 insertion(+) (limited to 'Timeline/Models/Timeline.cs') diff --git a/Timeline/Models/Timeline.cs b/Timeline/Models/Timeline.cs index b1772fa7..7afb1984 100644 --- a/Timeline/Models/Timeline.cs +++ b/Timeline/Models/Timeline.cs @@ -60,6 +60,7 @@ namespace Timeline.Models public long Id { get; set; } public ITimelinePostContent? Content { get; set; } + public bool Deleted => Content == null; public DateTime Time { get; set; } public User Author { get; set; } public DateTime LastUpdated { get; set; } -- cgit v1.2.3