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
TEntryPointThe 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
appAppManagerFixture<TEntryPoint>The application manager fixture.
Properties
Value
Gets the Microsoft.Extensions.Time.Testing.FakeTimeProvider instance.
public FakeTimeProvider Value { get; }
Property Value
- FakeTimeProvider