# ScopedTransactionsTestRunnerxUnit Methods

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

## CreateNestedTransactionScopeAndSetValueAndInnerFailAndAssert(string) {#createnestedtransactionscopeandsetvalueandinnerfailandassert-string-965c7f3a}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.xunit/orleans.transactions.testkit.xunit.scopedtransactionstestrunnerxunit/methods/createnestedtransactionscopeandsetvalueandinnerfailandassert-string-965c7f3a/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Transactions.TestKit.xUnit/ScopedTransactionsTestRunnerxUnit.cs#L46)

```csharp
public override Task CreateNestedTransactionScopeAndSetValueAndInnerFailAndAssert(string grainStates)
```

### Parameters

- `grainStates` (`string`)

## CreateTransactionScopeAndSetValue(string) {#createtransactionscopeandsetvalue-string-1ef8c77f}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.xunit/orleans.transactions.testkit.xunit.scopedtransactionstestrunnerxunit/methods/createtransactionscopeandsetvalue-string-1ef8c77f/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Transactions.TestKit.xUnit/ScopedTransactionsTestRunnerxUnit.cs#L19)

```csharp
public override Task CreateTransactionScopeAndSetValue(string grainStates)
```

### Parameters

- `grainStates` (`string`)

## CreateTransactionScopeAndSetValueAndAssert(string) {#createtransactionscopeandsetvalueandassert-string-b25e3d8c}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.xunit/orleans.transactions.testkit.xunit.scopedtransactionstestrunnerxunit/methods/createtransactionscopeandsetvalueandassert-string-b25e3d8c/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Transactions.TestKit.xUnit/ScopedTransactionsTestRunnerxUnit.cs#L37)

```csharp
public override Task CreateTransactionScopeAndSetValueAndAssert(string grainStates)
```

### Parameters

- `grainStates` (`string`)

## CreateTransactionScopeAndSetValueWithFailure(string) {#createtransactionscopeandsetvaluewithfailure-string-b6ac7cfd}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.xunit/orleans.transactions.testkit.xunit.scopedtransactionstestrunnerxunit/methods/createtransactionscopeandsetvaluewithfailure-string-b6ac7cfd/)

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

```csharp
public override Task CreateTransactionScopeAndSetValueWithFailure(string grainStates)
```

### Parameters

- `grainStates` (`string`)
