Table of Contents

Class FakeTimeFixture<TEntryPoint>

Namespace
FEFF.TestFixtures.AspNetCore
Assembly
FEFF.TestFixtures.AspNetCore.dll

Replaces the TimeProvider service with a Microsoft.Extensions.Time.Testing.FakeTimeProvider singleton in the application under test.

public class FakeTimeFixture<TEntryPoint> : IFakeTimeFixture where TEntryPoint : class

Type Parameters

TEntryPoint

The application entry point type.

Inheritance
FakeTimeFixture<TEntryPoint>
Implements
Inherited Members

Constructors

FakeTimeFixture(AppManagerFixture<TEntryPoint>)

Initializes a new instance of FakeTimeFixture<TEntryPoint> and registers the fake time provider with the application under test.

public FakeTimeFixture(AppManagerFixture<TEntryPoint> app)

Parameters

app AppManagerFixture<TEntryPoint>

The application manager fixture.

Properties

Value

Gets the Microsoft.Extensions.Time.Testing.FakeTimeProvider instance.

public FakeTimeProvider Value { get; }

Property Value

FakeTimeProvider