-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Host.Hybrid] SlimMessageBus.Host.ConfigurationMessageBusException: C…
…ould not find any bus that produces the message type #199 Signed-off-by: Tomasz Maruszak <[email protected]>
- Loading branch information
Showing
7 changed files
with
217 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
namespace SlimMessageBus.Host.Test.Common; | ||
|
||
public static class MoqMatchers | ||
{ | ||
public static bool LogMessageMatcher(object formattedLogValueObject, Func<string, bool> messageMatch) | ||
{ | ||
var logValues = formattedLogValueObject as IReadOnlyList<KeyValuePair<string, object>>; | ||
var originalFormat = logValues?.FirstOrDefault(logValue => logValue.Key == "{OriginalFormat}").Value.ToString(); | ||
return originalFormat != null && messageMatch(originalFormat); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters