mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 16:11:10 +00:00
Implements tests for commit dfd979ec1e
This commit is contained in:
1 parent
d8adf3c1b6
commit
968061e89a
111 files changed
+19955
-292
No files matched your search
+3
-3
@@ -27,12 +27,12 @@ public class GetAllUsersConsumptionStatisticsEndpointSummary : Summary<GetAllUse
|
||||
ExampleRequest = new GetAllUsersConsumptionStatisticsRequest(
|
||||
LibraryId: null,
|
||||
MediaKind: null,
|
||||
FromUtc: new DateTime(2026, 10, 1, 0, 0, 0, DateTimeKind.Utc),
|
||||
ToUtc: new DateTime(2026, 10, 31, 23, 59, 59, DateTimeKind.Utc)
|
||||
FromUtc: "2026-10-01T00:00:00Z",
|
||||
ToUtc: "2026-10-31T23:59:59Z"
|
||||
);
|
||||
|
||||
RequestParam(request => request.LibraryId, "The Id of the media library to restrict the statistics to. Optional.");
|
||||
RequestParam(request => request.MediaKind, "The kind of media to restrict the statistics to. Optional.");
|
||||
RequestParam(request => request.MediaKind, "The name of the kind of media to restrict the statistics to. Optional. Only the member names of the media kind enumeration are accepted.");
|
||||
RequestParam(request => request.FromUtc, "The inclusive start of the date range. Optional.");
|
||||
RequestParam(request => request.ToUtc, "The inclusive end of the date range. Optional.");
|
||||
|
||||
|
||||
+3
-3
@@ -27,12 +27,12 @@ public class GetConsumptionStatisticsEndpointSummary : Summary<GetConsumptionSta
|
||||
ExampleRequest = new GetConsumptionStatisticsRequest(
|
||||
LibraryId: null,
|
||||
MediaKind: null,
|
||||
FromUtc: new DateTime(2026, 10, 1, 0, 0, 0, DateTimeKind.Utc),
|
||||
ToUtc: new DateTime(2026, 10, 31, 23, 59, 59, DateTimeKind.Utc)
|
||||
FromUtc: "2026-10-01T00:00:00Z",
|
||||
ToUtc: "2026-10-31T23:59:59Z"
|
||||
);
|
||||
|
||||
RequestParam(request => request.LibraryId, "The Id of the media library to restrict the statistics to. Optional.");
|
||||
RequestParam(request => request.MediaKind, "The kind of media to restrict the statistics to. Optional.");
|
||||
RequestParam(request => request.MediaKind, "The name of the kind of media to restrict the statistics to. Optional. Only the member names of the media kind enumeration are accepted.");
|
||||
RequestParam(request => request.FromUtc, "The inclusive start of the date range. Optional.");
|
||||
RequestParam(request => request.ToUtc, "The inclusive end of the date range. Optional.");
|
||||
|
||||
|
||||
+3
-3
@@ -27,13 +27,13 @@ public class GetUserConsumptionStatisticsEndpointSummary : Summary<GetUserConsum
|
||||
ExampleRequest = new GetConsumptionStatisticsRequest(
|
||||
LibraryId: null,
|
||||
MediaKind: null,
|
||||
FromUtc: new DateTime(2026, 10, 1, 0, 0, 0, DateTimeKind.Utc),
|
||||
ToUtc: new DateTime(2026, 10, 31, 23, 59, 59, DateTimeKind.Utc)
|
||||
FromUtc: "2026-10-01T00:00:00Z",
|
||||
ToUtc: "2026-10-31T23:59:59Z"
|
||||
);
|
||||
|
||||
Params["userId"] = "The Id of the user whose statistics are retrieved. An Admin can name any user; a regular user can only name themselves.";
|
||||
RequestParam(request => request.LibraryId, "The Id of the media library to restrict the statistics to. Optional.");
|
||||
RequestParam(request => request.MediaKind, "The kind of media to restrict the statistics to. Optional.");
|
||||
RequestParam(request => request.MediaKind, "The name of the kind of media to restrict the statistics to. Optional. Only the member names of the media kind enumeration are accepted.");
|
||||
RequestParam(request => request.FromUtc, "The inclusive start of the date range. Optional.");
|
||||
RequestParam(request => request.ToUtc, "The inclusive end of the date range. Optional.");
|
||||
|
||||
|
||||
+4
-4
@@ -27,15 +27,15 @@ public class GetMostConsumedEndpointSummary : Summary<GetMostConsumedEndpoint, G
|
||||
|
||||
ExampleRequest = new GetMostConsumedRequest(
|
||||
LibraryId: null,
|
||||
MediaKind: MediaKind.MusicTrack,
|
||||
MediaKind: nameof(MediaKind.MusicTrack),
|
||||
CurrentPage: 1,
|
||||
PerPage: 50,
|
||||
FromUtc: new DateTime(2026, 10, 1, 0, 0, 0, DateTimeKind.Utc),
|
||||
ToUtc: new DateTime(2026, 10, 31, 23, 59, 59, DateTimeKind.Utc)
|
||||
FromUtc: "2026-10-01T00:00:00Z",
|
||||
ToUtc: "2026-10-31T23:59:59Z"
|
||||
);
|
||||
|
||||
RequestParam(request => request.LibraryId, "The Id of the media library to restrict the history to. Optional.");
|
||||
RequestParam(request => request.MediaKind, "The kind of media to restrict the history to. Optional.");
|
||||
RequestParam(request => request.MediaKind, "The name of the kind of media to restrict the history to. Optional. Only the member names of the media kind enumeration are accepted.");
|
||||
RequestParam(request => request.CurrentPage, "The one based page of media items to return. Optional.");
|
||||
RequestParam(request => request.PerPage, "The number of media items per page. Optional.");
|
||||
RequestParam(request => request.FromUtc, "The inclusive start of the date range. Optional.");
|
||||
|
||||
+4
-4
@@ -27,16 +27,16 @@ public class GetUserMostConsumedEndpointSummary : Summary<GetUserMostConsumedEnd
|
||||
|
||||
ExampleRequest = new GetMostConsumedRequest(
|
||||
LibraryId: null,
|
||||
MediaKind: MediaKind.MusicTrack,
|
||||
MediaKind: nameof(MediaKind.MusicTrack),
|
||||
CurrentPage: 1,
|
||||
PerPage: 50,
|
||||
FromUtc: new DateTime(2026, 10, 1, 0, 0, 0, DateTimeKind.Utc),
|
||||
ToUtc: new DateTime(2026, 10, 31, 23, 59, 59, DateTimeKind.Utc)
|
||||
FromUtc: "2026-10-01T00:00:00Z",
|
||||
ToUtc: "2026-10-31T23:59:59Z"
|
||||
);
|
||||
|
||||
Params["userId"] = "The Id of the user whose history is retrieved. An Admin can name any user; a regular user can only name themselves.";
|
||||
RequestParam(request => request.LibraryId, "The Id of the media library to restrict the history to. Optional.");
|
||||
RequestParam(request => request.MediaKind, "The kind of media to restrict the history to. Optional.");
|
||||
RequestParam(request => request.MediaKind, "The name of the kind of media to restrict the history to. Optional. Only the member names of the media kind enumeration are accepted.");
|
||||
RequestParam(request => request.CurrentPage, "The one based page of media items to return. Optional.");
|
||||
RequestParam(request => request.PerPage, "The number of media items per page. Optional.");
|
||||
RequestParam(request => request.FromUtc, "The inclusive start of the date range. Optional.");
|
||||
|
||||
+4
-4
@@ -27,15 +27,15 @@ public class GetRecentlyConsumedEndpointSummary : Summary<GetRecentlyConsumedEnd
|
||||
|
||||
ExampleRequest = new GetRecentlyConsumedRequest(
|
||||
LibraryId: null,
|
||||
MediaKind: MediaKind.MusicTrack,
|
||||
MediaKind: nameof(MediaKind.MusicTrack),
|
||||
CurrentPage: 1,
|
||||
PerPage: 50,
|
||||
FromUtc: new DateTime(2026, 10, 1, 0, 0, 0, DateTimeKind.Utc),
|
||||
ToUtc: new DateTime(2026, 10, 31, 23, 59, 59, DateTimeKind.Utc)
|
||||
FromUtc: "2026-10-01T00:00:00Z",
|
||||
ToUtc: "2026-10-31T23:59:59Z"
|
||||
);
|
||||
|
||||
RequestParam(request => request.LibraryId, "The Id of the media library to restrict the history to. Optional.");
|
||||
RequestParam(request => request.MediaKind, "The kind of media to restrict the history to. Optional.");
|
||||
RequestParam(request => request.MediaKind, "The name of the kind of media to restrict the history to. Optional. Only the member names of the media kind enumeration are accepted.");
|
||||
RequestParam(request => request.CurrentPage, "The one based page of media items to return. Optional.");
|
||||
RequestParam(request => request.PerPage, "The number of media items per page. Optional.");
|
||||
RequestParam(request => request.FromUtc, "The inclusive start of the date range. Optional.");
|
||||
|
||||
+4
-4
@@ -27,16 +27,16 @@ public class GetUserRecentlyConsumedEndpointSummary : Summary<GetUserRecentlyCon
|
||||
|
||||
ExampleRequest = new GetRecentlyConsumedRequest(
|
||||
LibraryId: null,
|
||||
MediaKind: MediaKind.MusicTrack,
|
||||
MediaKind: nameof(MediaKind.MusicTrack),
|
||||
CurrentPage: 1,
|
||||
PerPage: 50,
|
||||
FromUtc: new DateTime(2026, 10, 1, 0, 0, 0, DateTimeKind.Utc),
|
||||
ToUtc: new DateTime(2026, 10, 31, 23, 59, 59, DateTimeKind.Utc)
|
||||
FromUtc: "2026-10-01T00:00:00Z",
|
||||
ToUtc: "2026-10-31T23:59:59Z"
|
||||
);
|
||||
|
||||
Params["userId"] = "The Id of the user whose history is retrieved. An Admin can name any user; a regular user can only name themselves.";
|
||||
RequestParam(request => request.LibraryId, "The Id of the media library to restrict the history to. Optional.");
|
||||
RequestParam(request => request.MediaKind, "The kind of media to restrict the history to. Optional.");
|
||||
RequestParam(request => request.MediaKind, "The name of the kind of media to restrict the history to. Optional. Only the member names of the media kind enumeration are accepted.");
|
||||
RequestParam(request => request.CurrentPage, "The one based page of media items to return. Optional.");
|
||||
RequestParam(request => request.PerPage, "The number of media items per page. Optional.");
|
||||
RequestParam(request => request.FromUtc, "The inclusive start of the date range. Optional.");
|
||||
|
||||
+3
-3
@@ -26,12 +26,12 @@ public class GetTagConsumptionEndpointSummary : Summary<GetTagConsumptionEndpoin
|
||||
ExampleRequest = new GetTagConsumptionRequest(
|
||||
LibraryId: null,
|
||||
MediaKind: null,
|
||||
FromUtc: new DateTime(2026, 10, 1, 0, 0, 0, DateTimeKind.Utc),
|
||||
ToUtc: new DateTime(2026, 10, 31, 23, 59, 59, DateTimeKind.Utc)
|
||||
FromUtc: "2026-10-01T00:00:00Z",
|
||||
ToUtc: "2026-10-31T23:59:59Z"
|
||||
);
|
||||
|
||||
RequestParam(request => request.LibraryId, "The Id of the media library to restrict the statistics to. Optional.");
|
||||
RequestParam(request => request.MediaKind, "The kind of media to restrict the statistics to. Optional.");
|
||||
RequestParam(request => request.MediaKind, "The name of the kind of media to restrict the statistics to. Optional. Only the member names of the media kind enumeration are accepted.");
|
||||
RequestParam(request => request.FromUtc, "The inclusive start of the date range. Optional.");
|
||||
RequestParam(request => request.ToUtc, "The inclusive end of the date range. Optional.");
|
||||
|
||||
|
||||
+3
-3
@@ -26,13 +26,13 @@ public class GetUserTagConsumptionEndpointSummary : Summary<GetUserTagConsumptio
|
||||
ExampleRequest = new GetTagConsumptionRequest(
|
||||
LibraryId: null,
|
||||
MediaKind: null,
|
||||
FromUtc: new DateTime(2026, 10, 1, 0, 0, 0, DateTimeKind.Utc),
|
||||
ToUtc: new DateTime(2026, 10, 31, 23, 59, 59, DateTimeKind.Utc)
|
||||
FromUtc: "2026-10-01T00:00:00Z",
|
||||
ToUtc: "2026-10-31T23:59:59Z"
|
||||
);
|
||||
|
||||
Params["userId"] = "The Id of the user whose statistics are retrieved. An Admin can name any user; a regular user can only name themselves.";
|
||||
RequestParam(request => request.LibraryId, "The Id of the media library to restrict the statistics to. Optional.");
|
||||
RequestParam(request => request.MediaKind, "The kind of media to restrict the statistics to. Optional.");
|
||||
RequestParam(request => request.MediaKind, "The name of the kind of media to restrict the statistics to. Optional. Only the member names of the media kind enumeration are accepted.");
|
||||
RequestParam(request => request.FromUtc, "The inclusive start of the date range. Optional.");
|
||||
RequestParam(request => request.ToUtc, "The inclusive end of the date range. Optional.");
|
||||
|
||||
|
||||
Reference in new issue
Block a user