public HubProxyIntegrationTests()
        {
            reporter   = new InvocationReporter();
            factory    = new ApplicationFactory <SimpleHub>(services => services.AddSingleton(reporter));
            connection = new HubConnectionBuilder()
                         .WithUrl(new Uri("http://localhost/hub"), opts => opts.HttpMessageHandlerFactory = _ => factory.Server.CreateHandler())
                         .Build();

            hubContext = factory.Services.GetRequiredService <IHubContext <SimpleHub, IHubEvents> >();
            proxy      = SignalRProxyGenerator.CreateProxy <IHubContract>(connection);
        }
 public SimpleHub(InvocationReporter reporter)
 {
     this.reporter = reporter;
 }