Class AbpAspNetCoreAsyncIntegratedTestBase<TModule>
Inheritance
object
AbpAspNetCoreAsyncIntegratedTestBase<TModule>
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Assembly: Volo.Abp.AspNetCore.TestBase.dll
Syntax
public class AbpAspNetCoreAsyncIntegratedTestBase<TModule> where TModule : IAbpModule
Type Parameters
Constructors
AbpAspNetCoreAsyncIntegratedTestBase()
Declaration
public AbpAspNetCoreAsyncIntegratedTestBase()
Properties
Client
Declaration
protected HttpClient Client { get; set; }
Property Value
| Type |
Description |
| System.Net.Http.HttpClient |
|
Server
Declaration
protected TestServer Server { get; set; }
Property Value
| Type |
Description |
| Microsoft.AspNetCore.TestHost.TestServer |
|
ServiceProvider
Declaration
protected IServiceProvider ServiceProvider { get; set; }
Property Value
| Type |
Description |
| System.IServiceProvider |
|
WebApplication
Declaration
protected WebApplication WebApplication { get; set; }
Property Value
| Type |
Description |
| Microsoft.AspNetCore.Builder.WebApplication |
|
Methods
Declaration
protected virtual Task ConfigureServicesAsync(IServiceCollection services)
Parameters
| Type |
Name |
Description |
| Microsoft.Extensions.DependencyInjection.IServiceCollection |
services |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
DisposeAsync()
Declaration
public virtual Task DisposeAsync()
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
GetRequiredService<T>()
Declaration
protected virtual T GetRequiredService<T>()
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, 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 |
|
GetUrl<TController>(string)
Declaration
protected virtual string GetUrl<TController>(string actionName)
Parameters
| Type |
Name |
Description |
| string |
actionName |
|
Returns
Type Parameters
| Name |
Description |
| TController |
|
InitializeAsync()
Declaration
public virtual Task InitializeAsync()
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
Extension Methods