diff options
author | crupest <crupest@outlook.com> | 2021-01-16 19:48:09 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-01-16 19:48:09 +0800 |
commit | 115b46a932cf740da1a6783dfecf1c3bad75a835 (patch) | |
tree | 407694a3cbd85e2dd50b651e47e10f1c42addb10 /BackEnd/Timeline | |
parent | b91b7bf4c0afb960b392b8187bba959503d99cec (diff) | |
download | timeline-115b46a932cf740da1a6783dfecf1c3bad75a835.tar.gz timeline-115b46a932cf740da1a6783dfecf1c3bad75a835.tar.bz2 timeline-115b46a932cf740da1a6783dfecf1c3bad75a835.zip |
test: Add unit tests for search service.
Diffstat (limited to 'BackEnd/Timeline')
-rw-r--r-- | BackEnd/Timeline/Services/SearchService.cs | 6 |
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);
}
|