Table of Contents

Class TestActorScope

Namespace
Trellis.Testing.Fakes
Assembly
Trellis.Testing.dll

Captures the current Actor and restores it on dispose. Created by WithActor(Actor). Supports both await using and using patterns.

public sealed class TestActorScope : IAsyncDisposable, IDisposable
Inheritance
TestActorScope
Implements
Inherited Members
Extension Methods

Methods

Dispose()

Restores the previous actor on the TestActorProvider.

public void Dispose()

DisposeAsync()

Restores the previous actor on the TestActorProvider.

public ValueTask DisposeAsync()

Returns

ValueTask