# ScopedTransactionsTestRunner Methods

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

## CreateNestedTransactionScopeAndSetValueAndInnerFailAndAssert(string) {#createnestedtransactionscopeandsetvalueandinnerfailandassert-string-3af30875}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleans.transactions.testkit.scopedtransactionstestrunner/methods/createnestedtransactionscopeandsetvalueandinnerfailandassert-string-3af30875/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Transactions.TestKit.Base/TestRunners/ScopedTransactionsTestRunner.cs#L63-L85)

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

### Parameters

- `grainStates` (`string`)

## CreateTransactionScopeAndSetValue(string) {#createtransactionscopeandsetvalue-string-2a8b1fce}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleans.transactions.testkit.scopedtransactionstestrunner/methods/createtransactionscopeandsetvalue-string-2a8b1fce/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Transactions.TestKit.Base/TestRunners/ScopedTransactionsTestRunner.cs#L21-L29)

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

### Parameters

- `grainStates` (`string`)

## CreateTransactionScopeAndSetValueAndAssert(string) {#createtransactionscopeandsetvalueandassert-string-0353d393}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleans.transactions.testkit.scopedtransactionstestrunner/methods/createtransactionscopeandsetvalueandassert-string-0353d393/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Transactions.TestKit.Base/TestRunners/ScopedTransactionsTestRunner.cs#L45-L59)

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

### Parameters

- `grainStates` (`string`)

## CreateTransactionScopeAndSetValueWithFailure(string) {#createtransactionscopeandsetvaluewithfailure-string-2a769206}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleans.transactions.testkit.scopedtransactionstestrunner/methods/createtransactionscopeandsetvaluewithfailure-string-2a769206/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Transactions.TestKit.Base/TestRunners/ScopedTransactionsTestRunner.cs#L34-L41)

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

### Parameters

- `grainStates` (`string`)
