diff options
author | crupest <crupest@outlook.com> | 2022-04-11 17:18:02 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-04-11 17:18:02 +0800 |
commit | bd8ac38bae4cab90ccec79dbc48660ea990d3ead (patch) | |
tree | d6e74e8a2de64c39eaa5c7b18f0cc6c9665c6ab8 | |
parent | 0483ac417aac15a1d6192f959b8995f109a18bd5 (diff) | |
download | timeline-bd8ac38bae4cab90ccec79dbc48660ea990d3ead.tar.gz timeline-bd8ac38bae4cab90ccec79dbc48660ea990d3ead.tar.bz2 timeline-bd8ac38bae4cab90ccec79dbc48660ea990d3ead.zip |
...
-rw-r--r-- | BackEnd/Timeline.Tests/IntegratedTests2/TimelineBookmarkTest.cs | 9 | ||||
-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 |