# FaultInjectionTransactionalStateFactory Constructors

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleans.transactions.testkit.faultinjectiontransactionalstatefactory/)

## FaultInjectionTransactionalStateFactory(IGrainContextAccessor) {#constructor-orleans-runtime-igraincontextaccessor-82e5ecaf}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleans.transactions.testkit.faultinjectiontransactionalstatefactory/constructors/constructor-orleans-runtime-igraincontextaccessor-82e5ecaf/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Transactions.TestKit.Base/FaultInjection/ControlledInjection/FaultInjectionTransactionStateAttribute.cs#L35-L38)

```csharp
public FaultInjectionTransactionalStateFactory(IGrainContextAccessor contextAccessor)
```

### Parameters

- `contextAccessor` (`IGrainContextAccessor`)
