I have an Asp.Net Core 6 Web Api application. Frontend is Angular.
I have Integration tests as described here - with a WebApplicationFactory which creates a client.
I just added SignalR and I want to add Integration tests for it in the backend.
I only send SignalR events from backend to front-end. It does not happen the other direction.
My question is: Is there any way I can detect that the backend has raised a particular SignalR event?
I see an example for integration tests here, but they basically make a new .Net client. in the test through HubConnectionBuilder.
Is there any way I can avoid this? I want to detect Asp.net Core has raised an event without making a client?