Class AppClientFixture<TEntryPoint>
- Namespace
- FEFF.TestFixtures.AspNetCore
- Assembly
- FEFF.TestFixtures.AspNetCore.dll
This fixture returns HttpClient connected to an application being tested.
public sealed class AppClientFixture<TEntryPoint> : IDisposable, IAppClientFixture where TEntryPoint : class
Type Parameters
TEntryPointThe application entry point type.
- Inheritance
-
AppClientFixture<TEntryPoint>
- Implements
- Inherited Members
Constructors
AppClientFixture(AppManagerFixture<TEntryPoint>)
Creates a new AppClientFixture<TEntryPoint> that will create an HttpClient when LazyValue is first accessed.
public AppClientFixture(AppManagerFixture<TEntryPoint> app)
Parameters
appAppManagerFixture<TEntryPoint>The application manager fixture.
Properties
LazyValue
Gets the lazily-created HttpClient.
public HttpClient LazyValue { get; }
Property Value
Remarks
Starts the application under test on first access if not already running.
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()