Path: redb-route/tests/redb.Route.Tests/Processors/LogProcessorTests.cs
Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route
Page: https://redbase.app/src/dev-2026-12-06/redb-route/tests/redb.Route.Tests/Processors/LogProcessorTests.cs
----
using AwesomeAssertions;
using Microsoft.Extensions.Logging;
using NSubstitute;
using redb.Route.Abstractions;
using redb.Route.Core;
using redb.Route.Processors;
namespace redb.Route.Tests.Processors;
/// Tests for .
public class LogProcessorTests
{
/// Static message is logged.
[Fact]
public async Task Process_StaticMessage_Logged()
{
var logger = Substitute.For();
var processor = new LogProcessor(logger, "hello route");
await processor.Process(new Exchange());
logger.Received(1).Log(
LogLevel.Information,
Arg.Any(),
Arg.Any