Testing QueryHandler

Hello Is there some hints or Samples how I can Test my QueryHandler ? I have some Test already for the Command And Events with the AggregateTestFixture

Hello Marzel,

There is currently no explicit functionality present in the framework to test query handlers. Testing is often done by invoking event handlers first, then invoking a query handler.
There is a Github issue to track this wanted feature though, we will be considering this for the next version of the framework.

Kind regards,

Mitchell

1 Like

For samples you can look into a recent Baeldung article, or straight to the code it’s based on. It has unit and integration tests for all query handlers.

1 Like