From 523870fbe758c3b471de73b8c1ae20e3ab5b39f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=A4felfinger?= Date: Tue, 15 Nov 2022 23:29:53 +0100 Subject: [PATCH] updates nuget packages --- ...ld_return_all_existing_albums.verified.txt | 68 ++-- ...should_return_expected_images.verified.txt | 344 +++++++++--------- ..._pass_request_and_return_data.verified.txt | 110 +++--- .../Piwigo.Client.Tests.csproj | 18 +- ...tag_and_return_correct_result.verified.txt | 8 +- ...hould_pass_correct_parameters.verified.txt | 6 +- ...tAsync_should_return_all_tags.verified.txt | 16 +- ...tAsync_should_return_all_tags.verified.txt | 12 +- ...hould_pass_correct_parameters.verified.txt | 6 +- src/Piwigo.Client/Piwigo.Client.csproj | 2 +- src/global.json | 7 + 11 files changed, 305 insertions(+), 292 deletions(-) create mode 100644 src/global.json diff --git a/src/Piwigo.Client.Tests/AlbumApiTests.GetList_should_return_all_existing_albums.verified.txt b/src/Piwigo.Client.Tests/AlbumApiTests.GetList_should_return_all_existing_albums.verified.txt index a52ebde..f3215dc 100644 --- a/src/Piwigo.Client.Tests/AlbumApiTests.GetList_should_return_all_existing_albums.verified.txt +++ b/src/Piwigo.Client.Tests/AlbumApiTests.GetList_should_return_all_existing_albums.verified.txt @@ -1,42 +1,42 @@ [ { - id: 7, - name: LocalTestAlbum, - comment: , - status: public, - uppercats: 7, - global_rank: 1, - nb_images: 4, - total_nb_images: 4, - representative_picture_id: 1, - date_last: 2022-10-20 22:01:32, - max_date_last: 2022-10-20 22:01:32, - nb_categories: 0, - url: http://localhost:8080/index.php?/category/7, - tn_url: http://localhost:8080/i.php?/upload/2022/10/20/20221020220129-6b8c2a7d-th.jpg + Id: 7, + Name: LocalTestAlbum, + Comment: , + Status: public, + UpperCats: 7, + GlobalRank: 1, + NbImages: 4, + TotalNbImages: 4, + RepresentativePictureId: 1, + DateLast: 2022-10-20 22:01:32, + MaxDateLast: 2022-10-20 22:01:32, + NbCategories: 0, + Url: http://localhost:8080/index.php?/category/7, + TnUrl: http://localhost:8080/i.php?/upload/2022/10/20/20221020220129-6b8c2a7d-th.jpg }, { - id: 6, - name: UnittestMain2, - comment: comment, - status: public, - uppercats: 6, - global_rank: 2, - nb_images: 0, - total_nb_images: 0, - nb_categories: 0, - url: http://localhost:8080/index.php?/category/6 + Id: 6, + Name: UnittestMain2, + Comment: comment, + Status: public, + UpperCats: 6, + GlobalRank: 2, + NbImages: 0, + TotalNbImages: 0, + NbCategories: 0, + Url: http://localhost:8080/index.php?/category/6 }, { - id: 1, - name: UnitTestMain, - comment: , - status: public, - uppercats: 1, - global_rank: 3, - nb_images: 0, - total_nb_images: 0, - nb_categories: 1, - url: http://localhost:8080/index.php?/category/1 + Id: 1, + Name: UnitTestMain, + Comment: , + Status: public, + UpperCats: 1, + GlobalRank: 3, + NbImages: 0, + TotalNbImages: 0, + NbCategories: 1, + Url: http://localhost:8080/index.php?/category/1 } ] \ No newline at end of file diff --git a/src/Piwigo.Client.Tests/ImageApiTests.GetImages_should_return_expected_images.verified.txt b/src/Piwigo.Client.Tests/ImageApiTests.GetImages_should_return_expected_images.verified.txt index 2a53fb1..718214f 100644 --- a/src/Piwigo.Client.Tests/ImageApiTests.GetImages_should_return_expected_images.verified.txt +++ b/src/Piwigo.Client.Tests/ImageApiTests.GetImages_should_return_expected_images.verified.txt @@ -1,270 +1,270 @@ { - paging: { - per_page: 100, - count: 4 + Paging: { + PageSize: 100, + TotalItems: 4 }, - images: [ + Images: [ { - id: 4, - width: 4452, - height: 2968, - hit: 3, - file: 2017-08-30-20-38-c7d_7682.jpg, - name: 2017-08-30-20-38-c7d 7682, - date_creation: DateTime_1, - date_available: DateTime_2, - page_url: http://localhost:8080/picture.php?/4, - element_url: http://localhost:8080/upload/2022/10/20/20221020220132-2c6d9eab.jpg, - derivatives: { + Id: 4, + Width: 4452, + Height: 2968, + Hit: 3, + File: 2017-08-30-20-38-c7d_7682.jpg, + Name: 2017-08-30-20-38-c7d 7682, + DateCreation: DateTime_1, + DateAvailable: DateTime_2, + PageUrl: http://localhost:8080/picture.php?/4, + ElementUrl: http://localhost:8080/upload/2022/10/20/20221020220132-2c6d9eab.jpg, + Derivatives: { 2small: { - url: http://localhost:8080/i.php?/upload/2022/10/20/20221020220132-2c6d9eab-2s.jpg, - width: 240, - height: 160 + Url: http://localhost:8080/i.php?/upload/2022/10/20/20221020220132-2c6d9eab-2s.jpg, + Width: 240, + Height: 160 }, large: { - url: http://localhost:8080/i.php?/upload/2022/10/20/20221020220132-2c6d9eab-la.jpg, - width: 1008, - height: 672 + Url: http://localhost:8080/i.php?/upload/2022/10/20/20221020220132-2c6d9eab-la.jpg, + Width: 1008, + Height: 672 }, medium: { - url: http://localhost:8080/_data/i/upload/2022/10/20/20221020220132-2c6d9eab-me.jpg, - width: 792, - height: 528 + Url: http://localhost:8080/_data/i/upload/2022/10/20/20221020220132-2c6d9eab-me.jpg, + Width: 792, + Height: 528 }, small: { - url: http://localhost:8080/i.php?/upload/2022/10/20/20221020220132-2c6d9eab-sm.jpg, - width: 576, - height: 384 + Url: http://localhost:8080/i.php?/upload/2022/10/20/20221020220132-2c6d9eab-sm.jpg, + Width: 576, + Height: 384 }, square: { - url: http://localhost:8080/_data/i/upload/2022/10/20/20221020220132-2c6d9eab-sq.jpg, - width: 120, - height: 120 + Url: http://localhost:8080/_data/i/upload/2022/10/20/20221020220132-2c6d9eab-sq.jpg, + Width: 120, + Height: 120 }, thumb: { - url: http://localhost:8080/i.php?/upload/2022/10/20/20221020220132-2c6d9eab-th.jpg, - width: 144, - height: 96 + Url: http://localhost:8080/i.php?/upload/2022/10/20/20221020220132-2c6d9eab-th.jpg, + Width: 144, + Height: 96 }, xlarge: { - url: http://localhost:8080/i.php?/upload/2022/10/20/20221020220132-2c6d9eab-xl.jpg, - width: 1224, - height: 816 + Url: http://localhost:8080/i.php?/upload/2022/10/20/20221020220132-2c6d9eab-xl.jpg, + Width: 1224, + Height: 816 }, xsmall: { - url: http://localhost:8080/_data/i/upload/2022/10/20/20221020220132-2c6d9eab-xs.jpg, - width: 432, - height: 288 + Url: http://localhost:8080/_data/i/upload/2022/10/20/20221020220132-2c6d9eab-xs.jpg, + Width: 432, + Height: 288 }, xxlarge: { - url: http://localhost:8080/_data/i/upload/2022/10/20/20221020220132-2c6d9eab-xx.jpg, - width: 1656, - height: 1104 + Url: http://localhost:8080/_data/i/upload/2022/10/20/20221020220132-2c6d9eab-xx.jpg, + Width: 1656, + Height: 1104 } }, - categories: [ + Albums: [ { - id: 7, - url: http://localhost:8080/index.php?/category/7, - page_url: http://localhost:8080/picture.php?/4/category/7 + Id: 7, + Url: http://localhost:8080/index.php?/category/7, + PageUrl: http://localhost:8080/picture.php?/4/category/7 } ] }, { - id: 3, - width: 3961, - height: 2641, - hit: 5, - file: 2017-05-24-20-35-c7d_6283.jpg, - name: 2017-05-24-20-35-c7d 6283, - date_creation: DateTime_3, - date_available: DateTime_4, - page_url: http://localhost:8080/picture.php?/3, - element_url: http://localhost:8080/upload/2022/10/20/20221020220131-9a567bdb.jpg, - derivatives: { + Id: 3, + Width: 3961, + Height: 2641, + Hit: 5, + File: 2017-05-24-20-35-c7d_6283.jpg, + Name: 2017-05-24-20-35-c7d 6283, + DateCreation: DateTime_3, + DateAvailable: DateTime_4, + PageUrl: http://localhost:8080/picture.php?/3, + ElementUrl: http://localhost:8080/upload/2022/10/20/20221020220131-9a567bdb.jpg, + Derivatives: { 2small: { - url: http://localhost:8080/i.php?/upload/2022/10/20/20221020220131-9a567bdb-2s.jpg, - width: 240, - height: 160 + Url: http://localhost:8080/i.php?/upload/2022/10/20/20221020220131-9a567bdb-2s.jpg, + Width: 240, + Height: 160 }, large: { - url: http://localhost:8080/i.php?/upload/2022/10/20/20221020220131-9a567bdb-la.jpg, - width: 1008, - height: 672 + Url: http://localhost:8080/i.php?/upload/2022/10/20/20221020220131-9a567bdb-la.jpg, + Width: 1008, + Height: 672 }, medium: { - url: http://localhost:8080/_data/i/upload/2022/10/20/20221020220131-9a567bdb-me.jpg, - width: 792, - height: 528 + Url: http://localhost:8080/_data/i/upload/2022/10/20/20221020220131-9a567bdb-me.jpg, + Width: 792, + Height: 528 }, small: { - url: http://localhost:8080/i.php?/upload/2022/10/20/20221020220131-9a567bdb-sm.jpg, - width: 576, - height: 384 + Url: http://localhost:8080/i.php?/upload/2022/10/20/20221020220131-9a567bdb-sm.jpg, + Width: 576, + Height: 384 }, square: { - url: http://localhost:8080/_data/i/upload/2022/10/20/20221020220131-9a567bdb-sq.jpg, - width: 120, - height: 120 + Url: http://localhost:8080/_data/i/upload/2022/10/20/20221020220131-9a567bdb-sq.jpg, + Width: 120, + Height: 120 }, thumb: { - url: http://localhost:8080/i.php?/upload/2022/10/20/20221020220131-9a567bdb-th.jpg, - width: 144, - height: 96 + Url: http://localhost:8080/i.php?/upload/2022/10/20/20221020220131-9a567bdb-th.jpg, + Width: 144, + Height: 96 }, xlarge: { - url: http://localhost:8080/i.php?/upload/2022/10/20/20221020220131-9a567bdb-xl.jpg, - width: 1224, - height: 816 + Url: http://localhost:8080/i.php?/upload/2022/10/20/20221020220131-9a567bdb-xl.jpg, + Width: 1224, + Height: 816 }, xsmall: { - url: http://localhost:8080/_data/i/upload/2022/10/20/20221020220131-9a567bdb-xs.jpg, - width: 432, - height: 288 + Url: http://localhost:8080/_data/i/upload/2022/10/20/20221020220131-9a567bdb-xs.jpg, + Width: 432, + Height: 288 }, xxlarge: { - url: http://localhost:8080/_data/i/upload/2022/10/20/20221020220131-9a567bdb-xx.jpg, - width: 1656, - height: 1104 + Url: http://localhost:8080/_data/i/upload/2022/10/20/20221020220131-9a567bdb-xx.jpg, + Width: 1656, + Height: 1104 } }, - categories: [ + Albums: [ { - id: 7, - url: http://localhost:8080/index.php?/category/7, - page_url: http://localhost:8080/picture.php?/3/category/7 + Id: 7, + Url: http://localhost:8080/index.php?/category/7, + PageUrl: http://localhost:8080/picture.php?/3/category/7 } ] }, { - id: 2, - width: 3107, - height: 4660, - hit: 4, - file: 2017-04-21-11-53-C7D_4469.jpg, - name: 2017-04-21-11-53-C7D 4469, - date_creation: DateTime_5, - date_available: DateTime_6, - page_url: http://localhost:8080/picture.php?/2, - element_url: http://localhost:8080/upload/2022/10/20/20221020220130-8e50dbd3.jpg, - derivatives: { + Id: 2, + Width: 3107, + Height: 4660, + Hit: 4, + File: 2017-04-21-11-53-C7D_4469.jpg, + Name: 2017-04-21-11-53-C7D 4469, + DateCreation: DateTime_5, + DateAvailable: DateTime_6, + PageUrl: http://localhost:8080/picture.php?/2, + ElementUrl: http://localhost:8080/upload/2022/10/20/20221020220130-8e50dbd3.jpg, + Derivatives: { 2small: { - url: http://localhost:8080/_data/i/upload/2022/10/20/20221020220130-8e50dbd3-2s.jpg, - width: 160, - height: 240 + Url: http://localhost:8080/_data/i/upload/2022/10/20/20221020220130-8e50dbd3-2s.jpg, + Width: 160, + Height: 240 }, large: { - url: http://localhost:8080/i.php?/upload/2022/10/20/20221020220130-8e50dbd3-la.jpg, - width: 504, - height: 756 + Url: http://localhost:8080/i.php?/upload/2022/10/20/20221020220130-8e50dbd3-la.jpg, + Width: 504, + Height: 756 }, medium: { - url: http://localhost:8080/_data/i/upload/2022/10/20/20221020220130-8e50dbd3-me.jpg, - width: 396, - height: 594 + Url: http://localhost:8080/_data/i/upload/2022/10/20/20221020220130-8e50dbd3-me.jpg, + Width: 396, + Height: 594 }, small: { - url: http://localhost:8080/i.php?/upload/2022/10/20/20221020220130-8e50dbd3-sm.jpg, - width: 288, - height: 432 + Url: http://localhost:8080/i.php?/upload/2022/10/20/20221020220130-8e50dbd3-sm.jpg, + Width: 288, + Height: 432 }, square: { - url: http://localhost:8080/_data/i/upload/2022/10/20/20221020220130-8e50dbd3-sq.jpg, - width: 120, - height: 120 + Url: http://localhost:8080/_data/i/upload/2022/10/20/20221020220130-8e50dbd3-sq.jpg, + Width: 120, + Height: 120 }, thumb: { - url: http://localhost:8080/i.php?/upload/2022/10/20/20221020220130-8e50dbd3-th.jpg, - width: 96, - height: 144 + Url: http://localhost:8080/i.php?/upload/2022/10/20/20221020220130-8e50dbd3-th.jpg, + Width: 96, + Height: 144 }, xlarge: { - url: http://localhost:8080/_data/i/upload/2022/10/20/20221020220130-8e50dbd3-xl.jpg, - width: 612, - height: 918 + Url: http://localhost:8080/_data/i/upload/2022/10/20/20221020220130-8e50dbd3-xl.jpg, + Width: 612, + Height: 918 }, xsmall: { - url: http://localhost:8080/i.php?/upload/2022/10/20/20221020220130-8e50dbd3-xs.jpg, - width: 216, - height: 324 + Url: http://localhost:8080/i.php?/upload/2022/10/20/20221020220130-8e50dbd3-xs.jpg, + Width: 216, + Height: 324 }, xxlarge: { - url: http://localhost:8080/i.php?/upload/2022/10/20/20221020220130-8e50dbd3-xx.jpg, - width: 828, - height: 1242 + Url: http://localhost:8080/i.php?/upload/2022/10/20/20221020220130-8e50dbd3-xx.jpg, + Width: 828, + Height: 1242 } }, - categories: [ + Albums: [ { - id: 7, - url: http://localhost:8080/index.php?/category/7, - page_url: http://localhost:8080/picture.php?/2/category/7 + Id: 7, + Url: http://localhost:8080/index.php?/category/7, + PageUrl: http://localhost:8080/picture.php?/2/category/7 } ] }, { - id: 1, - width: 5184, - height: 3456, - hit: 2, - file: 2017-01-05-11-25-c7d_2770.jpg, - name: 2017-01-05-11-25-c7d 2770, - date_creation: DateTime_7, - date_available: DateTime_8, - page_url: http://localhost:8080/picture.php?/1, - element_url: http://localhost:8080/upload/2022/10/20/20221020220129-6b8c2a7d.jpg, - derivatives: { + Id: 1, + Width: 5184, + Height: 3456, + Hit: 2, + File: 2017-01-05-11-25-c7d_2770.jpg, + Name: 2017-01-05-11-25-c7d 2770, + DateCreation: DateTime_7, + DateAvailable: DateTime_8, + PageUrl: http://localhost:8080/picture.php?/1, + ElementUrl: http://localhost:8080/upload/2022/10/20/20221020220129-6b8c2a7d.jpg, + Derivatives: { 2small: { - url: http://localhost:8080/i.php?/upload/2022/10/20/20221020220129-6b8c2a7d-2s.jpg, - width: 240, - height: 160 + Url: http://localhost:8080/i.php?/upload/2022/10/20/20221020220129-6b8c2a7d-2s.jpg, + Width: 240, + Height: 160 }, large: { - url: http://localhost:8080/i.php?/upload/2022/10/20/20221020220129-6b8c2a7d-la.jpg, - width: 1008, - height: 672 + Url: http://localhost:8080/i.php?/upload/2022/10/20/20221020220129-6b8c2a7d-la.jpg, + Width: 1008, + Height: 672 }, medium: { - url: http://localhost:8080/_data/i/upload/2022/10/20/20221020220129-6b8c2a7d-me.jpg, - width: 792, - height: 528 + Url: http://localhost:8080/_data/i/upload/2022/10/20/20221020220129-6b8c2a7d-me.jpg, + Width: 792, + Height: 528 }, small: { - url: http://localhost:8080/_data/i/upload/2022/10/20/20221020220129-6b8c2a7d-sm.jpg, - width: 576, - height: 384 + Url: http://localhost:8080/_data/i/upload/2022/10/20/20221020220129-6b8c2a7d-sm.jpg, + Width: 576, + Height: 384 }, square: { - url: http://localhost:8080/_data/i/upload/2022/10/20/20221020220129-6b8c2a7d-sq.jpg, - width: 120, - height: 120 + Url: http://localhost:8080/_data/i/upload/2022/10/20/20221020220129-6b8c2a7d-sq.jpg, + Width: 120, + Height: 120 }, thumb: { - url: http://localhost:8080/i.php?/upload/2022/10/20/20221020220129-6b8c2a7d-th.jpg, - width: 144, - height: 96 + Url: http://localhost:8080/i.php?/upload/2022/10/20/20221020220129-6b8c2a7d-th.jpg, + Width: 144, + Height: 96 }, xlarge: { - url: http://localhost:8080/i.php?/upload/2022/10/20/20221020220129-6b8c2a7d-xl.jpg, - width: 1224, - height: 816 + Url: http://localhost:8080/i.php?/upload/2022/10/20/20221020220129-6b8c2a7d-xl.jpg, + Width: 1224, + Height: 816 }, xsmall: { - url: http://localhost:8080/_data/i/upload/2022/10/20/20221020220129-6b8c2a7d-xs.jpg, - width: 432, - height: 288 + Url: http://localhost:8080/_data/i/upload/2022/10/20/20221020220129-6b8c2a7d-xs.jpg, + Width: 432, + Height: 288 }, xxlarge: { - url: http://localhost:8080/_data/i/upload/2022/10/20/20221020220129-6b8c2a7d-xx.jpg, - width: 1656, - height: 1104 + Url: http://localhost:8080/_data/i/upload/2022/10/20/20221020220129-6b8c2a7d-xx.jpg, + Width: 1656, + Height: 1104 } }, - categories: [ + Albums: [ { - id: 7, - url: http://localhost:8080/index.php?/category/7, - page_url: http://localhost:8080/picture.php?/1/category/7 + Id: 7, + Url: http://localhost:8080/index.php?/category/7, + PageUrl: http://localhost:8080/picture.php?/1/category/7 } ] } diff --git a/src/Piwigo.Client.Tests/ImageApiTests.GetInfo_should_pass_request_and_return_data.verified.txt b/src/Piwigo.Client.Tests/ImageApiTests.GetInfo_should_pass_request_and_return_data.verified.txt index f839280..69697ae 100644 --- a/src/Piwigo.Client.Tests/ImageApiTests.GetInfo_should_pass_request_and_return_data.verified.txt +++ b/src/Piwigo.Client.Tests/ImageApiTests.GetInfo_should_pass_request_and_return_data.verified.txt @@ -1,84 +1,84 @@ { - id: 3, - width: 3961, - height: 2641, - hit: 5, - file: 2017-05-24-20-35-c7d_6283.jpg, - name: 2017-05-24-20-35-c7d 6283, - date_creation: DateTime_1, - date_available: DateTime_2, - page_url: http://localhost:8080/picture.php?/3, - element_url: http://localhost:8080/upload/2022/10/20/20221020220131-9a567bdb.jpg, - derivatives: { + Id: 3, + Width: 3961, + Height: 2641, + Hit: 5, + File: 2017-05-24-20-35-c7d_6283.jpg, + Name: 2017-05-24-20-35-c7d 6283, + DateCreation: DateTime_1, + DateAvailable: DateTime_2, + PageUrl: http://localhost:8080/picture.php?/3, + ElementUrl: http://localhost:8080/upload/2022/10/20/20221020220131-9a567bdb.jpg, + Derivatives: { 2small: { - url: http://localhost:8080/i.php?/upload/2022/10/20/20221020220131-9a567bdb-2s.jpg, - width: 240, - height: 160 + Url: http://localhost:8080/i.php?/upload/2022/10/20/20221020220131-9a567bdb-2s.jpg, + Width: 240, + Height: 160 }, large: { - url: http://localhost:8080/i.php?/upload/2022/10/20/20221020220131-9a567bdb-la.jpg, - width: 1008, - height: 672 + Url: http://localhost:8080/i.php?/upload/2022/10/20/20221020220131-9a567bdb-la.jpg, + Width: 1008, + Height: 672 }, medium: { - url: http://localhost:8080/_data/i/upload/2022/10/20/20221020220131-9a567bdb-me.jpg, - width: 792, - height: 528 + Url: http://localhost:8080/_data/i/upload/2022/10/20/20221020220131-9a567bdb-me.jpg, + Width: 792, + Height: 528 }, small: { - url: http://localhost:8080/i.php?/upload/2022/10/20/20221020220131-9a567bdb-sm.jpg, - width: 576, - height: 384 + Url: http://localhost:8080/i.php?/upload/2022/10/20/20221020220131-9a567bdb-sm.jpg, + Width: 576, + Height: 384 }, square: { - url: http://localhost:8080/_data/i/upload/2022/10/20/20221020220131-9a567bdb-sq.jpg, - width: 120, - height: 120 + Url: http://localhost:8080/_data/i/upload/2022/10/20/20221020220131-9a567bdb-sq.jpg, + Width: 120, + Height: 120 }, thumb: { - url: http://localhost:8080/i.php?/upload/2022/10/20/20221020220131-9a567bdb-th.jpg, - width: 144, - height: 96 + Url: http://localhost:8080/i.php?/upload/2022/10/20/20221020220131-9a567bdb-th.jpg, + Width: 144, + Height: 96 }, xlarge: { - url: http://localhost:8080/i.php?/upload/2022/10/20/20221020220131-9a567bdb-xl.jpg, - width: 1224, - height: 816 + Url: http://localhost:8080/i.php?/upload/2022/10/20/20221020220131-9a567bdb-xl.jpg, + Width: 1224, + Height: 816 }, xsmall: { - url: http://localhost:8080/_data/i/upload/2022/10/20/20221020220131-9a567bdb-xs.jpg, - width: 432, - height: 288 + Url: http://localhost:8080/_data/i/upload/2022/10/20/20221020220131-9a567bdb-xs.jpg, + Width: 432, + Height: 288 }, xxlarge: { - url: http://localhost:8080/_data/i/upload/2022/10/20/20221020220131-9a567bdb-xx.jpg, - width: 1656, - height: 1104 + Url: http://localhost:8080/_data/i/upload/2022/10/20/20221020220131-9a567bdb-xx.jpg, + Width: 1656, + Height: 1104 } }, - categories: [ + Albums: [ { - id: 7, - name: LocalTestAlbum, - url: http://localhost:8080/index.php?/category/7, - page_url: http://localhost:8080/picture.php?/3/category/7 + Id: 7, + Name: LocalTestAlbum, + Url: http://localhost:8080/index.php?/category/7, + PageUrl: http://localhost:8080/picture.php?/3/category/7 } ], - comment_post: { - author: admin, - key: 1666472481:2:c928621171e6b7b3ba199c59c778df09 + CommentPost: { + Author: admin, + Key: 1666472481:2:c928621171e6b7b3ba199c59c778df09 }, - comments_paging: { - per_page: 10, - count: 1, - total_count: 1 + CommentPaging: { + PageSize: 10, + Count: 1, + TotalItems: 1 }, - comments: [ + Comments: [ { - id: 1, - date: DateTime_3, - author: admin, - content: testkommentar + Id: 1, + Date: DateTime_3, + Author: admin, + Content: testkommentar } ] } \ No newline at end of file diff --git a/src/Piwigo.Client.Tests/Piwigo.Client.Tests.csproj b/src/Piwigo.Client.Tests/Piwigo.Client.Tests.csproj index 2da2de7..984d55e 100644 --- a/src/Piwigo.Client.Tests/Piwigo.Client.Tests.csproj +++ b/src/Piwigo.Client.Tests/Piwigo.Client.Tests.csproj @@ -9,13 +9,19 @@ - - + + - - - - + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + diff --git a/src/Piwigo.Client.Tests/TagApiTests.AddAsync_should_add_tag_and_return_correct_result.verified.txt b/src/Piwigo.Client.Tests/TagApiTests.AddAsync_should_add_tag_and_return_correct_result.verified.txt index dd8a748..a39d59d 100644 --- a/src/Piwigo.Client.Tests/TagApiTests.AddAsync_should_add_tag_and_return_correct_result.verified.txt +++ b/src/Piwigo.Client.Tests/TagApiTests.AddAsync_should_add_tag_and_return_correct_result.verified.txt @@ -1,6 +1,6 @@ { - info: Keyword "test3" has been added, - id: 3, - name: test3, - url_name: test3 + Info: Keyword "test3" has been added, + Id: 3, + Name: test3, + UrlName: test3 } \ No newline at end of file diff --git a/src/Piwigo.Client.Tests/TagApiTests.DuplicateAsync_should_pass_correct_parameters.verified.txt b/src/Piwigo.Client.Tests/TagApiTests.DuplicateAsync_should_pass_correct_parameters.verified.txt index 50623ee..5d26deb 100644 --- a/src/Piwigo.Client.Tests/TagApiTests.DuplicateAsync_should_pass_correct_parameters.verified.txt +++ b/src/Piwigo.Client.Tests/TagApiTests.DuplicateAsync_should_pass_correct_parameters.verified.txt @@ -1,5 +1,5 @@ { - id: 4, - name: dup2, - url_name: dup2 + Id: 4, + Name: dup2, + UrlName: dup2 } \ No newline at end of file diff --git a/src/Piwigo.Client.Tests/TagApiTests.GetAdminListAsync_should_return_all_tags.verified.txt b/src/Piwigo.Client.Tests/TagApiTests.GetAdminListAsync_should_return_all_tags.verified.txt index 8ecc262..edff36a 100644 --- a/src/Piwigo.Client.Tests/TagApiTests.GetAdminListAsync_should_return_all_tags.verified.txt +++ b/src/Piwigo.Client.Tests/TagApiTests.GetAdminListAsync_should_return_all_tags.verified.txt @@ -1,14 +1,14 @@ [ { - id: 1, - name: tag1, - url_name: tag1, - lastmodified: DateTime_1 + Id: 1, + Name: tag1, + UrlName: tag1, + LastModified: DateTime_1 }, { - id: 2, - name: tag2, - url_name: tag2, - lastmodified: DateTime_2 + Id: 2, + Name: tag2, + UrlName: tag2, + LastModified: DateTime_2 } ] \ No newline at end of file diff --git a/src/Piwigo.Client.Tests/TagApiTests.GetListAsync_should_return_all_tags.verified.txt b/src/Piwigo.Client.Tests/TagApiTests.GetListAsync_should_return_all_tags.verified.txt index 5e6ae85..d6efc7e 100644 --- a/src/Piwigo.Client.Tests/TagApiTests.GetListAsync_should_return_all_tags.verified.txt +++ b/src/Piwigo.Client.Tests/TagApiTests.GetListAsync_should_return_all_tags.verified.txt @@ -1,10 +1,10 @@ [ { - counter: 1, - url: http://localhost:8080/index.php?/tags/1-tag1, - id: 1, - name: tag1, - url_name: tag1, - lastmodified: DateTime_1 + Counter: 1, + Url: http://localhost:8080/index.php?/tags/1-tag1, + Id: 1, + Name: tag1, + UrlName: tag1, + LastModified: DateTime_1 } ] \ No newline at end of file diff --git a/src/Piwigo.Client.Tests/TagApiTests.MergeAsync_should_pass_correct_parameters.verified.txt b/src/Piwigo.Client.Tests/TagApiTests.MergeAsync_should_pass_correct_parameters.verified.txt index 51f5b8b..d898963 100644 --- a/src/Piwigo.Client.Tests/TagApiTests.MergeAsync_should_pass_correct_parameters.verified.txt +++ b/src/Piwigo.Client.Tests/TagApiTests.MergeAsync_should_pass_correct_parameters.verified.txt @@ -1,9 +1,9 @@ { - destination_tag: 1, - deleted_tag: [ + DestinationTagId: 1, + DeletedTags: [ 3 ], - images_in_merged_tag: [ + ImagesInMergedTag: [ 4, 3 ] diff --git a/src/Piwigo.Client/Piwigo.Client.csproj b/src/Piwigo.Client/Piwigo.Client.csproj index d9667d9..9a153b7 100644 --- a/src/Piwigo.Client/Piwigo.Client.csproj +++ b/src/Piwigo.Client/Piwigo.Client.csproj @@ -23,7 +23,7 @@ - + diff --git a/src/global.json b/src/global.json new file mode 100644 index 0000000..87aef9f --- /dev/null +++ b/src/global.json @@ -0,0 +1,7 @@ +{ + "sdk": { + "version": "6.0.0", + "rollForward": "latestMajor", + "allowPrerelease": false + } +} \ No newline at end of file