Search Results for

    Show / Hide Table of Contents

    Class TestBaseWithAssemblyFixture<TAppFixture>

    abstract class for implementing a test-class with an assembly level app fixture.

    Inheritance
    object
    TestBaseWithAssemblyFixture<TAppFixture>
    TestBaseWithAssemblyFixture<TAppFixture, TState>
    Implements
    IAsyncLifetime
    IAsyncDisposable
    IFaker
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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
    IAsyncDisposable
    IFaker
    In this article
    Back to top Developed by Đĵ ΝιΓΞΗΛψΚ and contributors / Licensed under MIT / Website generated by DocFX