public static TClient CreateGrpcClient <TClient>(this WebApplicationFactory <Startup> factory)
            where TClient : ClientBase <TClient>
        {
            var channel = GrpcChannel.ForAddress("http://localhost", new GrpcChannelOptions
            {
                HttpClient = factory.CreateInMemoryDbClient()
            });

            return(Activator.CreateInstance(typeof(TClient), channel) as TClient);
        }