Testing with event store grpc client


Is there some guidelines to test when an EventStoreClient is involved.

I have a .NET grpc event store client, which is used to listen to all stream subcription.

How can I test, either unit or integration to see if appropriate handler is invoked?

For integration, I have seen like

https://developers.eventstore.com/clients/dotnet/5.0/embedded.html#embeddedvnodebuilder which seems to be for TCP based.

Is there equivalent ones for grpc based clients, or some pointers to how to unit test or do integration tests with these clients in place

The best way to

  • unit test the handlers is to pass events constructed from the tests , so not relying on the external DB

  • integration tests : set-up esdb in docker , populate with data, start your test , assert that the work is done accordingly