Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add comprehensive tests for analyzers and code fixes #46

Merged
merged 7 commits into from
Nov 9, 2022
Merged

Conversation

kzu
Copy link
Member

@kzu kzu commented Nov 9, 2022

No description provided.

Which immediately uncovered a bug and got it fixed :)
Tests that ensure we apply all fixers we support for handlers.
Using the basic library works well enough already.
The compiler (for now? always?) assumes that an invocation to ExecuteAsync<T> is always the IMessageBus method receiving a TResult and requiring a command argument. It's impossible to have it pick the parameterless extension method, or even one requiring the CancellationToken whether this parameter allows a default or not.
@kzu kzu enabled auto-merge (rebase) November 9, 2022 22:40
The Execute<TCommand> shorthand notation cannot be used with async commands, so the fix should also turn the `TCommand` generic parameter into `new TCommand()` argument for `ExecuteAsync`.
@kzu kzu merged commit 59b16a6 into main Nov 9, 2022
@kzu kzu deleted the dev/test-fixers branch November 9, 2022 23:03
@devlooped devlooped locked and limited conversation to collaborators Nov 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant