# TestCluster Constructors

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

## TestCluster(TestClusterOptions, IReadOnlyList&lt;IConfigurationSource&gt;, ITestClusterPortAllocator) {#constructor-orleans-testinghost-testclusteroptions-system-collections-generic-ir-2cad549b}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.testcluster/constructors/constructor-orleans-testinghost-testclusteroptions-system-collections-generic-ir-2cad549b/)

[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`)
