# TransactionalStateStorageTestRunnerxUnit&lt;TState&gt; Constructors

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.xunit/orleans.transactions.testkit.xunit.transactionalstatestoragetestrunnerxunit-1/)

## TransactionalStateStorageTestRunnerxUnit&lt;TState&gt;(Func&lt;Task&lt;ITransactionalStateStorage&lt;TState&gt;&gt;&gt;, Func&lt;int, TState&gt;, IGrainFactory, ITestOutputHelper, Func&lt;EquivalencyOptions&lt;TState&gt;, EquivalencyOptions&lt;TState&gt;&gt;) {#constructor-system-func-system-threading-tasks-task-orleans-transactions-abstrac-d0222575}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.xunit/orleans.transactions.testkit.xunit.transactionalstatestoragetestrunnerxunit-1/constructors/constructor-system-func-system-threading-tasks-task-orleans-transactions-abstrac-d0222575/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Transactions.TestKit.xUnit/TransactionalStateStorageTestRunner.cs#L28-L30)

```csharp
public TransactionalStateStorageTestRunnerxUnit(Func<Task<ITransactionalStateStorage<TState>>> stateStorageFactory, Func<int, TState> stateFactory, IGrainFactory grainFactory, ITestOutputHelper testOutput, Func<EquivalencyOptions<TState>, EquivalencyOptions<TState>> assertConfig = null)
```

Constructor

### Parameters

- `stateStorageFactory` (`Func<Task<ITransactionalStateStorage<TState>>>`): factory to create ITransactionalStateStorage, the test runner are assuming the state in storage is empty when ITransactionalStateStorage was created
- `stateFactory` (`Func<int, TState>`): factory to create TState for test
- `grainFactory` (`IGrainFactory`): grain Factory needed for test runner
- `testOutput` (`ITestOutputHelper`): test output to helpful messages
- `assertConfig` (`Func<EquivalencyOptions<TState>, EquivalencyOptions<TState>>`): A reference to the AwesomeAssertions.Equivalency.EquivalencyOptions`1 configuration object that can be used to influence the way the object graphs are compared
