src/Arius.Core.Tests/List/ResolveFileHydrationStatusesHandlerTests.cs (1)
174-198: Consider extracting the shared FakeBlobContainerService to reduce duplication.
This FakeBlobContainerService implementation is nearly identical to the one in FileHydrationStatusResolverTests.cs. Consider extracting it to a shared test utilities class.
Example shared location
// src/Arius.Core.Tests/Fakes/FakeBlobContainerService.cs
namespace Arius.Core.Tests.Fakes;
public sealed class FakeBlobContainerService : IBlobContainerService
{
public Dictionary<string, BlobMetadata> Metadata { get; } = new(StringComparer.Ordinal);
public List RequestedBlobNames { get; } = [];
// ... rest of implementation
}
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In @src/Arius.Core.Tests/List/ResolveFileHydrationStatusesHandlerTests.cs around
lines 174 - 198, The FakeBlobContainerService class is duplicated between
ResolveFileHydrationStatusesHandlerTests and FileHydrationStatusResolverTests;
extract this test double into a shared test utilities namespace (e.g.,
Arius.Core.Tests.Fakes) and update both tests to reference the single
FakeBlobContainerService type instead of defining it locally; ensure the
extracted implementation preserves Metadata, RequestedBlobNames,
GetMetadataAsync, ListAsync and other method stubs so existing tests
(ResolveFileHydrationStatusesHandlerTests and FileHydrationStatusResolverTests)
c
src/Arius.Core.Tests/List/ResolveFileHydrationStatusesHandlerTests.cs (1)
174-198: Consider extracting the shared FakeBlobContainerService to reduce duplication.
This FakeBlobContainerService implementation is nearly identical to the one in FileHydrationStatusResolverTests.cs. Consider extracting it to a shared test utilities class.
Example shared location
// src/Arius.Core.Tests/Fakes/FakeBlobContainerService.cs
namespace Arius.Core.Tests.Fakes;
public sealed class FakeBlobContainerService : IBlobContainerService
{
public Dictionary<string, BlobMetadata> Metadata { get; } = new(StringComparer.Ordinal);
public List RequestedBlobNames { get; } = [];
// ... rest of implementation
}
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In
@src/Arius.Core.Tests/List/ResolveFileHydrationStatusesHandlerTests.csaroundlines 174 - 198, The FakeBlobContainerService class is duplicated between
ResolveFileHydrationStatusesHandlerTests and FileHydrationStatusResolverTests;
extract this test double into a shared test utilities namespace (e.g.,
Arius.Core.Tests.Fakes) and update both tests to reference the single
FakeBlobContainerService type instead of defining it locally; ensure the
extracted implementation preserves Metadata, RequestedBlobNames,
GetMetadataAsync, ListAsync and other method stubs so existing tests
(ResolveFileHydrationStatusesHandlerTests and FileHydrationStatusResolverTests)
c