16 lines
432 B
C#
16 lines
432 B
C#
using w4c_workflows.Services.Audit;
|
|
|
|
namespace w4c_workflows.Tests;
|
|
|
|
/// <summary>In-memory audit sink that captures everything it is handed.</summary>
|
|
internal sealed class RecordingActionAuditSink : IActionAuditSink
|
|
{
|
|
public List<ActionAuditEntry> Entries { get; } = new();
|
|
|
|
public Task RecordAsync(ActionAuditEntry entry, CancellationToken ct)
|
|
{
|
|
Entries.Add(entry);
|
|
return Task.CompletedTask;
|
|
}
|
|
}
|