25 lines
935 B
C#
25 lines
935 B
C#
// -----------------------------------------------------------------------------
|
|
// InMemoryArtifactIndexRepository.cs
|
|
// Sprint: SPRINT_20260118_017_Evidence_artifact_store_unification
|
|
// Task: AS-003 - Create ArtifactStore PostgreSQL index
|
|
// Description: In-memory artifact index repository for testing
|
|
// -----------------------------------------------------------------------------
|
|
using StellaOps.Artifact.Core;
|
|
|
|
namespace StellaOps.Artifact.Infrastructure;
|
|
|
|
/// <summary>
|
|
/// In-memory implementation for testing.
|
|
/// </summary>
|
|
public sealed partial class InMemoryArtifactIndexRepository : IArtifactIndexRepository
|
|
{
|
|
private readonly List<ArtifactIndexEntry> _entries = new();
|
|
private readonly object _lock = new();
|
|
private readonly TimeProvider _timeProvider;
|
|
|
|
public InMemoryArtifactIndexRepository(TimeProvider? timeProvider = null)
|
|
{
|
|
_timeProvider = timeProvider ?? TimeProvider.System;
|
|
}
|
|
}
|