public void Test1() { var main = new WorkloadManager(); var clientManager = new HttpClientManager(); clientManager.AddClient(new HttpHost(_client.BaseAddress.AbsoluteUri), new SgHttpClient(_client)); var result = main.MulticastAsync( new HttpRequestInstructions <string>(new HttpRequestMessageWrapper(), TimeSpan.FromSeconds(30), ResponseTransformer, Guid.NewGuid()), new List <IHost>() { new HttpHost("http://localhost:1111"), new HttpHost("http://localhost:51073"), new HttpHost("http://localhost:51073"), new HttpHost("http://localhost:1111"), }, new AscendingSortAggregator <string>()).Result; Assert.Equal(2, result.Count); Assert.True(result.All(x => x == "All is well")); }