Class AbpAspNetCoreIntegratedTestBase<TStartup>
Inheritance
object
AbpAspNetCoreIntegratedTestBase<TStartup>
Implements
System.IDisposable
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 abstract class AbpAspNetCoreIntegratedTestBase<TStartup> : AbpTestBaseWithServiceProvider, IDisposable where TStartup : class
Type Parameters
| Name |
Description |
| TStartup |
|
Constructors
AbpAspNetCoreIntegratedTestBase()
Declaration
protected AbpAspNetCoreIntegratedTestBase()
Properties
Client
Declaration
protected HttpClient Client { get; }
Property Value
| Type |
Description |
| System.Net.Http.HttpClient |
|
Server
Declaration
protected TestServer Server { get; }
Property Value
| Type |
Description |
| Microsoft.AspNetCore.TestHost.TestServer |
|
Methods
ConfigureServices(HostBuilderContext, IServiceCollection)
Declaration
protected virtual void ConfigureServices(HostBuilderContext context, IServiceCollection services)
Parameters
| Type |
Name |
Description |
| Microsoft.Extensions.Hosting.HostBuilderContext |
context |
|
| Microsoft.Extensions.DependencyInjection.IServiceCollection |
services |
|
CreateHostBuilder()
Declaration
protected virtual IHostBuilder CreateHostBuilder()
Returns
| Type |
Description |
| Microsoft.Extensions.Hosting.IHostBuilder |
|
Dispose()
Declaration
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 |
|
Implements
System.IDisposable
Extension Methods