public void LogBrokerConnected_Logged() { var expectedMessage = "TestBroker connected to message broker."; _silverbackLogger.LogBrokerConnected(_serviceProvider.GetRequiredService <TestBroker>()); _loggerSubstitute.Received(LogLevel.Information, null, expectedMessage, 1012); }