public void LogBrokerDisconnected_Logged() { var expectedMessage = "TestBroker disconnected from message broker."; _silverbackLogger.LogBrokerDisconnected(_serviceProvider.GetRequiredService <TestBroker>()); _loggerSubstitute.Received(LogLevel.Information, null, expectedMessage, 1014); }