Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"csharpier": {
"version": "1.2.1",
"version": "1.3.0",
"commands": ["csharpier"]
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ IDependencyInjection messageScope
public IDictionary<string, string> MessageProperties =>
_sbMessage
.ApplicationProperties?.Where(kvp => kvp.Value is string)
.ToDictionary(k => k.Key, k => k.Value.ToString()!) ?? new Dictionary<string, string>();
.ToDictionary(k => k.Key, k => k.Value.ToString()!)
?? new Dictionary<string, string>();

public async Task CompleteAsync()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ await PostgresSetup
.DataSource.CreateCommand(
$"SELECT COUNT(*) FROM knightbus.q_{AutoMessageMapper.GetQueueName<TestCommand>()};"
)
.ExecuteScalarAsync() ?? 0
.ExecuteScalarAsync()
?? 0
);

messagesCount.Should().Be(2);
Expand All @@ -118,7 +119,8 @@ await PostgresSetup
.DataSource.CreateCommand(
$"SELECT COUNT(*) FROM knightbus.q_{AutoMessageMapper.GetQueueName<TestCommand>()};"
)
.ExecuteScalarAsync() ?? 0
.ExecuteScalarAsync()
?? 0
);

messagesCount.Should().Be(100_000);
Expand Down
Loading