Search Results for

    Show / Hide Table of Contents

    Class StateFixture

    Inheritance
    object
    StateFixture
    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 StateFixture : IAsyncLifetime, IAsyncDisposable, IFaker

    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

    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
    Type Description
    ValueTask

    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
    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