Beispiel #1
0
        public void SHOULD_CREATE_REST_CLIENT_FOR_EVERY_SERVER_IN_COLLECTION(IServerDataCollection servers)
        {
            //Arrange
            const int timeout = 0;

            //Act
            var client = new WebElasticClient(servers, timeout, false, false, _authenticator, _clientFactory,
                                              _requestFactory, _responseValidator, _eventWriter);

            //Assert
            foreach (var server in servers)
            {
                _clientFactory.Received().Create("http://" + server.Address + ":" + server.Port + "/", timeout,
                                                 _authenticator);
            }
        }