Files
silver-octo-spoon/wolverine/a-frame-architecture/FinancialApi.Infrastructure/DemoEventStore.cs
T

13 lines
315 B
C#

using FinancialApi.Domain.Events;
namespace FinancialApi.Infrastructure;
public class DemoEventStore : IEventTracker
{
public List<string> CapturedEvents { get; } = new();
public void Add(string eventMessage)
{
CapturedEvents.Add($"[{DateTimeOffset.UtcNow:HH:mm:ss}] {eventMessage}");
}
}