Class TestBaseWithAssemblyFixture<TAppFixture>
abstract class for implementing a test-class with an assembly level app fixture.
Inheritance
TestBaseWithAssemblyFixture<TAppFixture>
Inherited Members
Namespace: FastEndpoints.Testing
Assembly: FastEndpoints.Testing.dll
Syntax
public abstract class TestBaseWithAssemblyFixture<TAppFixture> : IAsyncLifetime, IAsyncDisposable, IFaker where TAppFixture : BaseFixture
Type Parameters
| Name | Description |
|---|---|
| TAppFixture | the type of the assembly level app fixture. |
Properties
Cancellation
Declaration
public CancellationToken Cancellation { get; }
Property Value
| Type | Description |
|---|---|
| CancellationToken |
Context
Declaration
public ITestContext Context { get; }
Property Value
| Type | Description |
|---|---|
| ITestContext |
Fake
bogus data generator
Declaration
public Faker Fake { get; }
Property Value
| Type | Description |
|---|---|
| Faker |
Output
Declaration
public ITestOutputHelper Output { get; }
Property Value
| Type | Description |
|---|---|
| ITestOutputHelper |
Methods
SetupAsync()
override this method if you'd like to do some one-time setup for the test-class. it is run before any of the test-methods of the class is executed.
Declaration
protected virtual ValueTask SetupAsync()
Returns
| Type | Description |
|---|---|
| ValueTask |
TearDownAsync()
override this method if you'd like to do some one-time teardown for the test-class. it is run after all test-methods have executed.
Declaration
protected virtual ValueTask TearDownAsync()
Returns
| Type | Description |
|---|---|
| ValueTask |
Implements
Xunit.IAsyncLifetime