# TestCluster.TestCluster(TestClusterOptions, IReadOnlyList&lt;IConfigurationSource&gt;, ITestClusterPortAllocator)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.testcluster/) | [Constructors](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.testcluster/constructors/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.TestingHost/TestCluster.cs#L40-L149)

```csharp
public TestCluster(TestClusterOptions options, IReadOnlyList<IConfigurationSource> configurationSources, ITestClusterPortAllocator portAllocator)
```

Configures the test cluster plus client in-process.

### Parameters

- `options` (`TestClusterOptions`)
- `configurationSources` (`IReadOnlyList<IConfigurationSource>`)
- `portAllocator` (`ITestClusterPortAllocator`)
