aboutsummaryrefslogtreecommitdiff
path: root/BackEnd
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-04-11 17:18:02 +0800
committercrupest <crupest@outlook.com>2022-04-11 17:18:02 +0800
commitbd8ac38bae4cab90ccec79dbc48660ea990d3ead (patch)
treed6e74e8a2de64c39eaa5c7b18f0cc6c9665c6ab8 /BackEnd
parent0483ac417aac15a1d6192f959b8995f109a18bd5 (diff)
downloadtimeline-bd8ac38bae4cab90ccec79dbc48660ea990d3ead.tar.gz
timeline-bd8ac38bae4cab90ccec79dbc48660ea990d3ead.tar.bz2
timeline-bd8ac38bae4cab90ccec79dbc48660ea990d3ead.zip
...
Diffstat (limited to 'BackEnd')
-rw-r--r--BackEnd/Timeline.Tests/IntegratedTests2/TimelineBookmarkTest.cs9
-rw-r--r--BackEnd/Timeline/Controllers/TimelineBookmarkV2Controller.cs (renamed from BackEnd/Timeline/Controllers/TimelineBookmark1Controller.cs)0
2 files changed, 9 insertions, 0 deletions
diff --git a/BackEnd/Timeline.Tests/IntegratedTests2/TimelineBookmarkTest.cs b/BackEnd/Timeline.Tests/IntegratedTests2/TimelineBookmarkTest.cs
index bb1d0ac7..bac132ba 100644
--- a/BackEnd/Timeline.Tests/IntegratedTests2/TimelineBookmarkTest.cs
+++ b/BackEnd/Timeline.Tests/IntegratedTests2/TimelineBookmarkTest.cs
@@ -54,6 +54,15 @@ namespace Timeline.Tests.IntegratedTests2
}
[Fact]
+ public async Task ListGetNotExist()
+ {
+ using var client = CreateClientAsUser();
+
+ await client.TestJsonSendAsync(HttpMethod.Get, "v2/users/notexist/bookmarks", expectedStatusCode: HttpStatusCode.NotFound);
+ await client.TestJsonSendAsync(HttpMethod.Get, "v2/users/notexist/bookmarks/1", expectedStatusCode: HttpStatusCode.NotFound);
+ }
+
+ [Fact]
public async Task CreateUserNotExist()
{
using var client = CreateClientAsUser();
diff --git a/BackEnd/Timeline/Controllers/TimelineBookmark1Controller.cs b/BackEnd/Timeline/Controllers/TimelineBookmarkV2Controller.cs
index 3990a1e6..3990a1e6 100644
--- a/BackEnd/Timeline/Controllers/TimelineBookmark1Controller.cs
+++ b/BackEnd/Timeline/Controllers/TimelineBookmarkV2Controller.cs