Update configuration and enhance media processing: add stream token TTL and timeout settings in .env.example, improve error handling in media endpoints, and refactor command handlers for asynchronous operations. Update documentation to reflect current application state and features.
This commit is contained in:
@@ -268,7 +268,7 @@ public class QueryHandlersTests
|
||||
);
|
||||
Assert.True(removed.IsSuccess);
|
||||
}
|
||||
storage.Received(1).DeleteTemplate(templateId);
|
||||
await storage.Received(1).DeleteTemplateAsync(templateId, Arg.Any<CancellationToken>());
|
||||
|
||||
// дефолтный блок удалить нельзя
|
||||
await using (var db = fixture.New())
|
||||
|
||||
@@ -81,6 +81,16 @@ public class ShowTests
|
||||
Assert.True(series.CanAddEpisode);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void AddEpisode_SecondForSingle_Throws()
|
||||
{
|
||||
var single = Show.Create("Movie", ShowKind.Single);
|
||||
single.AddEpisode(Guid.NewGuid());
|
||||
|
||||
Assert.Throws<InvalidOperationException>(() => single.AddEpisode(Guid.NewGuid()));
|
||||
Assert.Single(single.Episodes);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ApplyMetadata_SetsProviderYearPoster_KeepsDescriptionIfBlank()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user