# InProcessTestCluster Constructors

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

## InProcessTestCluster(InProcessTestClusterOptions, ITestClusterPortAllocator) {#constructor-orleans-testinghost-inprocesstestclusteroptions-orleans-testinghost-d50dd750}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.inprocesstestcluster/constructors/constructor-orleans-testinghost-inprocesstestclusteroptions-orleans-testinghost-d50dd750/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.TestingHost/InProcTestCluster.cs#L38-L99)

```csharp
public InProcessTestCluster(InProcessTestClusterOptions options, ITestClusterPortAllocator portAllocator)
```

Configures the test cluster plus client in-process.

### Parameters

- `options` (`InProcessTestClusterOptions`)
- `portAllocator` (`ITestClusterPortAllocator`)
