Class StateFixture
Implements
IAsyncLifetime
Assembly: FastEndpoints.Testing.dll
Syntax
public abstract class StateFixture : IAsyncLifetime, IAsyncDisposable, IFaker
Properties
Cancellation
Declaration
public CancellationToken Cancellation { get; }
Property Value
Context
Declaration
public ITestContext Context { get; }
Property Value
Type |
Description |
ITestContext |
|
Fake
Declaration
public Faker Fake { get; }
Property Value
Methods
SetupAsync()
override this method if you'd like to do some one-time setup for the fixture.
it is run before any of the test-methods of the class is executed.
Declaration
protected virtual ValueTask SetupAsync()
Returns
TearDownAsync()
override this method if you'd like to do some one-time teardown for the fixture.
it is run after all test-methods have executed.
Declaration
protected virtual ValueTask TearDownAsync()
Returns
Implements
Xunit.IAsyncLifetime