public void Setup()
        {
            var activityStore = new ActivityStoreStub(new TerminalDTO
            {
                Endpoint = "http://test",
                Name     = "test"
            });

            _restfullServiceClient = new RestfulClientStub();
            _hubDiscoveryService   = new HubDiscoveryService(new FakeRestfulServiceClientFactory(_restfullServiceClient), activityStore, new SingleRunRetryPolicy());
        }
 public FakeRestfulServiceClientFactory(RestfulClientStub clientStub)
 {
     _clientStub = clientStub;
 }