Enhance code readability and maintainability by refactoring various components. Update formatting commands in CLAUDE.md for csharpier integration. Simplify method signatures in SegmentFiles, UploadLimits, and multiple endpoint classes for improved clarity. Adjust query handlers and command handlers to streamline parameter handling and enhance consistency across the application.
This commit is contained in:
@@ -26,9 +26,7 @@ public class ApplyShowMetadataTests
|
||||
var result = await ApplyAsync(arranged);
|
||||
|
||||
Assert.True(result);
|
||||
await arranged
|
||||
.Provider.Received(1)
|
||||
.GetShowAsync("42", kind, Arg.Any<CancellationToken>());
|
||||
await arranged.Provider.Received(1).GetShowAsync("42", kind, Arg.Any<CancellationToken>());
|
||||
}
|
||||
|
||||
[Fact]
|
||||
@@ -48,7 +46,10 @@ public class ApplyShowMetadataTests
|
||||
// «Not Rated» — это отсутствие данных. Снять им проставленный рейтинг нельзя: обновление
|
||||
// метаданных тихо открыло бы взрослому шоу дорогу в детское время.
|
||||
var arranged = await ArrangeAsync(ShowKind.Single, ShowAudience.R);
|
||||
Respond(arranged.Provider, new ShowMetadata("42", "A", 2000, null, null, null, "Not Rated"));
|
||||
Respond(
|
||||
arranged.Provider,
|
||||
new ShowMetadata("42", "A", 2000, null, null, null, "Not Rated")
|
||||
);
|
||||
|
||||
await ApplyAsync(arranged);
|
||||
|
||||
@@ -63,11 +64,7 @@ public class ApplyShowMetadataTests
|
||||
Assert.False(await ApplyAsync(arranged));
|
||||
await arranged
|
||||
.Provider.DidNotReceive()
|
||||
.GetShowAsync(
|
||||
Arg.Any<string>(),
|
||||
Arg.Any<ShowKind>(),
|
||||
Arg.Any<CancellationToken>()
|
||||
);
|
||||
.GetShowAsync(Arg.Any<string>(), Arg.Any<ShowKind>(), Arg.Any<CancellationToken>());
|
||||
}
|
||||
|
||||
private static void Respond(IMetadataProvider provider, ShowMetadata meta) =>
|
||||
|
||||
Reference in New Issue
Block a user