aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Services/SearchService.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-01-16 19:48:09 +0800
committercrupest <crupest@outlook.com>2021-01-16 19:48:09 +0800
commit280698f244bdaf3fbe2896d7104826d132c0b95a (patch)
treefbc6334bf444472bb9afe899127576c9a89d7623 /BackEnd/Timeline/Services/SearchService.cs
parenteba5936d0ed97d50d4c2d263624c02457539c8c1 (diff)
downloadtimeline-280698f244bdaf3fbe2896d7104826d132c0b95a.tar.gz
timeline-280698f244bdaf3fbe2896d7104826d132c0b95a.tar.bz2
timeline-280698f244bdaf3fbe2896d7104826d132c0b95a.zip
test: Add unit tests for search service.
Diffstat (limited to 'BackEnd/Timeline/Services/SearchService.cs')
-rw-r--r--BackEnd/Timeline/Services/SearchService.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/BackEnd/Timeline/Services/SearchService.cs b/BackEnd/Timeline/Services/SearchService.cs
index eac81fd0..680ef9e3 100644
--- a/BackEnd/Timeline/Services/SearchService.cs
+++ b/BackEnd/Timeline/Services/SearchService.cs
@@ -39,6 +39,9 @@ namespace Timeline.Services
/// <returns>Search results.</returns>
/// <exception cref="ArgumentNullException">Thrown when <paramref name="query"/> is null.</exception>
/// <exception cref="ArgumentException">Thrown when <paramref name="query"/> is empty.</exception>
+ /// <remarks>
+ /// Implementation should promise high score is at first.
+ /// </remarks>
Task<SearchResult<TimelineEntity>> SearchTimeline(string query);
/// <summary>
@@ -48,6 +51,9 @@ namespace Timeline.Services
/// <returns>Search results.</returns>
/// <exception cref="ArgumentNullException">Thrown when <paramref name="query"/> is null.</exception>
/// <exception cref="ArgumentException">Thrown when <paramref name="query"/> is empty.</exception>
+ /// <remarks>
+ /// Implementation should promise high score is at first.
+ /// </remarks>
Task<SearchResult<UserEntity>> SearchUser(string query);
}