using System.Collections.Generic;
namespace ZB.MOM.WW.MxGateway.Worker.Tests.Bootstrap;
///
/// Captures a log entry for testing.
///
internal sealed class MemoryWorkerLogEntry
{
///
/// Initializes a log entry with level, event name, and fields.
///
/// Log level (e.g., Debug, Info, Warning, Error).
/// Event name or category.
/// Dictionary of log fields.
public MemoryWorkerLogEntry(
string level,
string eventName,
IReadOnlyDictionary fields)
{
Level = level;
EventName = eventName;
Fields = fields;
}
///
/// Gets the log level.
///
public string Level { get; }
///
/// Gets the event name.
///
public string EventName { get; }
///
/// Gets the log entry fields.
///
public IReadOnlyDictionary Fields { get; }
}