Use `ArenaBuilder.CreateAndStartAsync`.
MODIFY
WalletWasabi.Tests/UnitTests/WabiSabi/Backend/PhaseStepping/StepConnectionConfirmationTests.cs
WalletWasabi.Tests/UnitTests/WabiSabi/Backend/PhaseStepping/StepConnectionConfirmationTests.cs
@@ -57,8 +57,7 @@ namespace WalletWasabi.Tests.UnitTests.WabiSabi.Backend.PhaseStepping
round.SetPhase(Phase.ConnectionConfirmation);
Prison prison = new();
- using Arena arena = ArenaBuilder.From(cfg, prison).Create(round);
- await arena.StartAsync(CancellationToken.None);
+ using Arena arena = await ArenaBuilder.From(cfg, prison).CreateAndStartAsync(round);
await arena.TriggerAndWaitRoundAsync(TimeSpan.FromSeconds(21));
Assert.Equal(Phase.ConnectionConfirmation, round.Phase);
@@ -93,8 +92,7 @@ namespace WalletWasabi.Tests.UnitTests.WabiSabi.Backend.PhaseStepping
round.SetPhase(Phase.ConnectionConfirmation);
Prison prison = new();
- using Arena arena = ArenaBuilder.From(cfg, prison).Create(round);
- await arena.StartAsync(CancellationToken.None);
+ using Arena arena = await ArenaBuilder.From(cfg, prison).CreateAndStartAsync(round);
await arena.TriggerAndWaitRoundAsync(TimeSpan.FromSeconds(21));
Assert.Equal(Phase.OutputRegistration, round.Phase);
@@ -130,8 +128,7 @@ namespace WalletWasabi.Tests.UnitTests.WabiSabi.Backend.PhaseStepping
round.SetPhase(Phase.ConnectionConfirmation);
Prison prison = new();
- using Arena arena = ArenaBuilder.From(cfg, prison).Create(round);
- await arena.StartAsync(CancellationToken.None);
+ using Arena arena = await ArenaBuilder.From(cfg, prison).CreateAndStartAsync(round);
await arena.TriggerAndWaitRoundAsync(TimeSpan.FromSeconds(21));
Assert.DoesNotContain(round, arena.ActiveRounds);

MODIFY
WalletWasabi.Tests/UnitTests/WabiSabi/Backend/PhaseStepping/StepTransactionSigningTests.cs
WalletWasabi.Tests/UnitTests/WabiSabi/Backend/PhaseStepping/StepTransactionSigningTests.cs
@@ -66,8 +66,7 @@ namespace WalletWasabi.Tests.UnitTests.WabiSabi.Backend.PhaseStepping
.ThrowsAsync(new RPCException(RPCErrorCode.RPC_TRANSACTION_REJECTED, "", null));
Prison prison = new();
- using Arena arena = ArenaBuilder.From(cfg, mockRpc, prison).Create();
- await arena.StartAsync(CancellationToken.None);
+ using Arena arena = await ArenaBuilder.From(cfg, mockRpc, prison).CreateAndStartAsync();
var (round, aliceClient1, aliceClient2) = await CreateRoundWithOutputsReadyToSignAsync(arena, key1, coin1, key2, coin2);
@@ -106,8 +105,7 @@ namespace WalletWasabi.Tests.UnitTests.WabiSabi.Backend.PhaseStepping
.ThrowsAsync(new RPCException(RPCErrorCode.RPC_TRANSACTION_REJECTED, "", null));
Prison prison = new();
- using Arena arena = ArenaBuilder.From(cfg, mockRpc, prison).Create();
- await arena.StartAsync(CancellationToken.None);
+ using Arena arena = await ArenaBuilder.From(cfg, mockRpc, prison).CreateAndStartAsync();
var (round, aliceClient1, aliceClient2) = await CreateRoundWithOutputsReadyToSignAsync(arena, key1, coin1, key2, coin2);
@@ -150,8 +148,7 @@ namespace WalletWasabi.Tests.UnitTests.WabiSabi.Backend.PhaseStepping
.ThrowsAsync(new RPCException(RPCErrorCode.RPC_TRANSACTION_REJECTED, "", null));
Prison prison = new();
- using Arena arena = ArenaBuilder.From(cfg, mockRpc, prison).Create();
- await arena.StartAsync(CancellationToken.None);
+ using Arena arena = await ArenaBuilder.From(cfg, mockRpc, prison).CreateAndStartAsync();
var (round, aliceClient1, aliceClient2) = await CreateRoundWithOutputsReadyToSignAsync(arena, key1, coin1, key2, coin2);
@@ -190,8 +187,7 @@ namespace WalletWasabi.Tests.UnitTests.WabiSabi.Backend.PhaseStepping
.ThrowsAsync(new RPCException(RPCErrorCode.RPC_TRANSACTION_REJECTED, "", null));
Prison prison = new();
- using Arena arena = ArenaBuilder.From(cfg, mockRpc, prison).Create();
- await arena.StartAsync(CancellationToken.None);
+ using Arena arena = await ArenaBuilder.From(cfg, mockRpc, prison).CreateAndStartAsync();
var (round, aliceClient1, aliceClient2) = await CreateRoundWithOutputsReadyToSignAsync(arena, key1, coin1, key2, coin2);

MODIFY
WalletWasabi.Tests/UnitTests/WabiSabi/Backend/PostRequests/RegisterInputFailureTests.cs
WalletWasabi.Tests/UnitTests/WabiSabi/Backend/PostRequests/RegisterInputFailureTests.cs
@@ -144,8 +144,7 @@ namespace WalletWasabi.Tests.UnitTests.WabiSabi.Backend.PostRequests
var round = WabiSabiFactory.CreateRound(cfg);
Prison prison = new();
- using Arena arena = ArenaBuilder.From(cfg, prison).Create(round);
- await arena.StartAsync(CancellationToken.None);
+ using Arena arena = await ArenaBuilder.From(cfg, prison).CreateAndStartAsync(round);
prison.Punish(outpoint, Punishment.Banned, uint256.One);
@@ -171,8 +170,7 @@ namespace WalletWasabi.Tests.UnitTests.WabiSabi.Backend.PostRequests
var round = WabiSabiFactory.CreateRound(cfg);
Prison prison = new();
- using Arena arena = ArenaBuilder.From(cfg, prison).Create(round);
- await arena.StartAsync(CancellationToken.None);
+ using Arena arena = await ArenaBuilder.From(cfg, prison).CreateAndStartAsync(round);
prison.Punish(outpoint, Punishment.Noted, uint256.One);
@@ -198,8 +196,7 @@ namespace WalletWasabi.Tests.UnitTests.WabiSabi.Backend.PostRequests
var ownershipProof = WabiSabiFactory.CreateOwnershipProof(key, round.Id);
Prison prison = new();
- using Arena arena = ArenaBuilder.From(cfg, prison).Create(round);
- await arena.StartAsync(CancellationToken.None);
+ using Arena arena = await ArenaBuilder.From(cfg, prison).CreateAndStartAsync(round);
prison.Punish(outpoint, Punishment.Noted, uint256.One);

MODIFY
WalletWasabi.Tests/UnitTests/WabiSabi/Backend/PostRequests/RegisterInputToBlameRoundTests.cs
WalletWasabi.Tests/UnitTests/WabiSabi/Backend/PostRequests/RegisterInputToBlameRoundTests.cs
@@ -70,8 +70,7 @@ namespace WalletWasabi.Tests.UnitTests.WabiSabi.Backend.PostRequests
var mockRpc = WabiSabiFactory.CreatePreconfiguredRpcClient(alice.Coin);
Prison prison = new();
- using Arena arena = ArenaBuilder.From(cfg, mockRpc, prison).Create(round, blameRound);
- await arena.StartAsync(CancellationToken.None);
+ using Arena arena = await ArenaBuilder.From(cfg, mockRpc, prison).CreateAndStartAsync(round, blameRound);
prison.Punish(bannedCoin, Punishment.Banned, uint256.Zero);
await using ArenaRequestHandler handler = new(cfg, prison, arena, mockRpc.Object);

Use `ArenaBuilder.CreateAndStartAsync`.