Add bulk poster filling endpoint and enhance show deletion options
Introduced a new endpoint for bulk filling collection posters, allowing for automatic assignment of posters to collections without existing images. Updated the DeleteShowCommand to include an option for cutting shows from future airings, enhancing the deletion process. Refactored related components and API calls to support these features, ensuring a seamless user experience. Additionally, updated localization strings to reflect the new functionalities and adjusted tests to verify correct behavior.
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using TeleWave.Application.Library.Collections;
|
||||
using TeleWave.Application.Library.Collections.Suggest;
|
||||
using TeleWave.Application.Programming.Groups;
|
||||
using TeleWave.Application.Programming.Groups.Suggest;
|
||||
@@ -142,7 +143,8 @@ public class SuggestionQueriesTests
|
||||
await using var db = fixture.New();
|
||||
var result = await new CreateCollectionFromSuggestionCommandHandler(
|
||||
db,
|
||||
new CollectionSuggestionBuilder(db)
|
||||
new CollectionSuggestionBuilder(db),
|
||||
new CollectionPosterPicker(db)
|
||||
).Handle(
|
||||
new CreateCollectionFromSuggestionCommand("name:нет-такого"),
|
||||
CancellationToken.None
|
||||
@@ -166,7 +168,8 @@ public class SuggestionQueriesTests
|
||||
await using var db = fixture.New();
|
||||
var handler = new CreateCollectionFromSuggestionCommandHandler(
|
||||
db,
|
||||
new CollectionSuggestionBuilder(db)
|
||||
new CollectionSuggestionBuilder(db),
|
||||
new CollectionPosterPicker(db)
|
||||
);
|
||||
|
||||
var created = await handler.Handle(
|
||||
|
||||
Reference in New Issue
Block a user