Class AbpAspNetCoreAsyncIntegratedTestBase<TModule>
Inheritance
AbpAspNetCoreAsyncIntegratedTestBase<TModule>
Assembly: Volo.Abp.AspNetCore.TestBase.dll
Syntax
[Obsolete("Use AbpWebApplicationFactoryIntegratedTest instead.")]
public class AbpAspNetCoreAsyncIntegratedTestBase<TModule> where TModule : IAbpModule
Type Parameters
Constructors
AbpAspNetCoreAsyncIntegratedTestBase()
Declaration
public AbpAspNetCoreAsyncIntegratedTestBase()
Properties
Client
Declaration
protected HttpClient Client { get; set; }
Property Value
Server
Declaration
protected TestServer Server { get; set; }
Property Value
Type |
Description |
TestServer |
|
ServiceProvider
Declaration
protected IServiceProvider ServiceProvider { get; set; }
Property Value
WebApplication
Declaration
protected WebApplication WebApplication { get; set; }
Property Value
Methods
Declaration
protected virtual Task ConfigureServicesAsync(IServiceCollection services)
Parameters
Returns
DisposeAsync()
Declaration
public virtual Task DisposeAsync()
Returns
GetKeyedServices<T>(object?)
Declaration
protected virtual T? GetKeyedServices<T>(object? serviceKey)
Parameters
Type |
Name |
Description |
object |
serviceKey |
|
Returns
Type Parameters
GetRequiredKeyedService<T>(object?)
Declaration
protected virtual T GetRequiredKeyedService<T>(object? serviceKey) where T : notnull
Parameters
Type |
Name |
Description |
object |
serviceKey |
|
Returns
Type Parameters
GetRequiredService<T>()
Declaration
protected virtual T GetRequiredService<T>() where T : notnull
Returns
Type Parameters
GetService<T>()
Declaration
protected virtual T? GetService<T>()
Returns
Type Parameters
GetUrl<TController>()
Declaration
protected virtual string GetUrl<TController>()
Returns
Type Parameters
Name |
Description |
TController |
|
GetUrl<TController>(string)
Declaration
protected virtual string GetUrl<TController>(string actionName)
Parameters
Type |
Name |
Description |
string |
actionName |
|
Returns
Type Parameters
Name |
Description |
TController |
|
GetUrl<TController>(string, object)
Declaration
protected virtual string GetUrl<TController>(string actionName, object queryStringParamsAsAnonymousObject)
Parameters
Type |
Name |
Description |
string |
actionName |
|
object |
queryStringParamsAsAnonymousObject |
|
Returns
Type Parameters
Name |
Description |
TController |
|
InitializeAsync()
Declaration
public virtual Task InitializeAsync()
Returns
Extension Methods