Owneat Technical Guide main Help

Class PaymentApiFactory

Namespace: Payment.IntegrationTests
Assembly: Payment.IntegrationTests.dll

public class PaymentApiFactory : WebApplicationFactory<IPaymentAnchor>, IDisposable, IAsyncDisposable, IAsyncLifetime

Inheritance

objectWebApplicationFactory<IPaymentAnchor\> ← PaymentApiFactory

Implements

IDisposable, IAsyncDisposable, IAsyncLifetime

Inherited Members

WebApplicationFactory<IPaymentAnchor\>.WithWebHostBuilder\(Action<IWebHostBuilder\>\), WebApplicationFactory<IPaymentAnchor\>.GetTestAssemblies\(\), WebApplicationFactory<IPaymentAnchor\>.CreateHostBuilder\(\), WebApplicationFactory<IPaymentAnchor\>.CreateWebHostBuilder\(\), WebApplicationFactory<IPaymentAnchor\>.CreateServer\(IWebHostBuilder\), WebApplicationFactory<IPaymentAnchor\>.CreateHost\(IHostBuilder\), WebApplicationFactory<IPaymentAnchor\>.ConfigureWebHost\(IWebHostBuilder\), WebApplicationFactory<IPaymentAnchor\>.CreateClient\(\), WebApplicationFactory<IPaymentAnchor\>.CreateClient\(WebApplicationFactoryClientOptions\), WebApplicationFactory<IPaymentAnchor\>.CreateDefaultClient\(params DelegatingHandler\[\]\), WebApplicationFactory<IPaymentAnchor\>.ConfigureClient\(HttpClient\), WebApplicationFactory<IPaymentAnchor\>.CreateDefaultClient\(Uri, params DelegatingHandler\[\]\), WebApplicationFactory<IPaymentAnchor\>.Dispose\(\), WebApplicationFactory<IPaymentAnchor\>.Dispose\(bool\), WebApplicationFactory<IPaymentAnchor\>.DisposeAsync\(\), WebApplicationFactory<IPaymentAnchor\>.Server, WebApplicationFactory<IPaymentAnchor\>.Services, WebApplicationFactory<IPaymentAnchor\>.Factories, WebApplicationFactory<IPaymentAnchor\>.ClientOptions, object.Equals\(object?\), object.Equals\(object?, object?\), object.GetHashCode\(\), object.GetType\(\), object.MemberwiseClone\(\), object.ReferenceEquals\(object?, object?\), object.ToString\(\)

Properties

HttpClient

public HttpClient HttpClient { get; }

Property Value

HttpClient

Methods

ConfigureWebHost\(IWebHostBuilder\)

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

protected override void ConfigureWebHost(IWebHostBuilder builder)

Parameters

builder IWebHostBuilder

The Microsoft.AspNetCore.Hosting.IWebHostBuilder for the application.

DisposeAsync\(\)

Called when an object is no longer needed. Called just before System.IDisposable.Dispose if the class also implements that.

public Task DisposeAsync()

Returns

Task

InitializeAsync\(\)

Called immediately after the class has been created, before it is used.

public Task InitializeAsync()

Returns

Task

ResetDatabaseAsync\(\)

public Task ResetDatabaseAsync()

Returns

Task

Last modified: 21 May 2024