Table of Contents

Class XpingIntegrationTestFixture<TEntryPoint>

Namespace
Xping.Sdk
Assembly
Xping.Sdk.dll

Provides a base test fixture class for integration testing within the Xping SDK environment.

public class XpingIntegrationTestFixture<TEntryPoint> : XpingTestFixture, IEnumerable, IDisposable where TEntryPoint : class

Type Parameters

TEntryPoint

The entry point class of the application under test, typically the Startup class.

Inheritance
XpingIntegrationTestFixture<TEntryPoint>
Implements
Inherited Members

Remarks

This class is designed to streamline the setup and configuration of the Xping SDK for integration testing purposes.

Methods

ConfigureHost(IHostBuilder)

Gives a fixture an opportunity to configure the host before it gets built.

protected override void ConfigureHost(IHostBuilder builder)

Parameters

builder IHostBuilder

The IHostBuilder for the host.

CreateFactory()

Instantiates a new WebApplicationFactory of type TEntryPoint.

protected virtual WebApplicationFactory<TEntryPoint> CreateFactory()

Returns

WebApplicationFactory<TEntryPoint>

A new instance of WebApplicationFactory configured for integration testing.

Remarks

This method creates a new instance of the WebApplicationFactory class, which provides a test server for the application. TEntryPoint is the entry point of the application, typically the Startup class, which configures services. This method can be overridden in derived class to customize the instantiation of the WebApplicationFactory.

Dispose(bool)

protected override void Dispose(bool disposing)

Parameters

disposing bool