finish secrets finding work and audit remarks work save
This commit is contained in:
@@ -50,6 +50,12 @@ public interface IAssumptionCollector
|
||||
public sealed class AssumptionCollector : IAssumptionCollector
|
||||
{
|
||||
private readonly Dictionary<(AssumptionCategory, string), Assumption> _assumptions = new();
|
||||
private readonly TimeProvider _timeProvider;
|
||||
|
||||
public AssumptionCollector(TimeProvider? timeProvider = null)
|
||||
{
|
||||
_timeProvider = timeProvider ?? TimeProvider.System;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public void Record(
|
||||
@@ -107,7 +113,7 @@ public sealed class AssumptionCollector : IAssumptionCollector
|
||||
{
|
||||
Id = Guid.NewGuid().ToString("N"),
|
||||
Assumptions = [.. _assumptions.Values],
|
||||
CreatedAt = DateTimeOffset.UtcNow,
|
||||
CreatedAt = _timeProvider.GetUtcNow(),
|
||||
ContextId = contextId
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user