Class AbpAspNetCoreIntegratedTestBase<TStartup>
Inheritance
System.Object
AbpAspNetCoreIntegratedTestBase<TStartup>
Assembly: Volo.Abp.AspNetCore.TestBase.dll
Syntax
public abstract class AbpAspNetCoreIntegratedTestBase<TStartup> : AbpTestBaseWithServiceProvider 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 |
TestServer |
|
ServiceProvider
Declaration
protected override IServiceProvider ServiceProvider { get; }
Property Value
Type |
Description |
System.IServiceProvider |
|
Overrides
Methods
ConfigureServices(HostBuilderContext, IServiceCollection)
Declaration
protected virtual void ConfigureServices(HostBuilderContext context, IServiceCollection services)
Parameters
Type |
Name |
Description |
HostBuilderContext |
context |
|
IServiceCollection |
services |
|
CreateHostBuilder()
Declaration
protected virtual IHostBuilder CreateHostBuilder()
Returns
Type |
Description |
IHostBuilder |
|
GetUrl<TController>()
Gets default URL for given controller type.
Declaration
protected virtual string GetUrl<TController>()
Returns
Type |
Description |
System.String |
|
Type Parameters
Name |
Description |
TController |
The type of the controller.
|
GetUrl<TController>(String)
Gets default URL for given controller type's given action.
Declaration
protected virtual string GetUrl<TController>(string actionName)
Parameters
Type |
Name |
Description |
System.String |
actionName |
|
Returns
Type |
Description |
System.String |
|
Type Parameters
Name |
Description |
TController |
The type of the controller.
|
GetUrl<TController>(String, Object)
Gets default URL for given controller type's given action with query string parameters (as anonymous object).
Declaration
protected virtual string GetUrl<TController>(string actionName, object queryStringParamsAsAnonymousObject)
Parameters
Type |
Name |
Description |
System.String |
actionName |
|
System.Object |
queryStringParamsAsAnonymousObject |
|
Returns
Type |
Description |
System.String |
|
Type Parameters
Name |
Description |
TController |
The type of the controller.
|
Extension Methods