Show / Hide Table of Contents

Class AbpAspNetCoreIntegratedTestBase<TStartup>

Inheritance
System.Object
AbpTestBaseWithServiceProvider
AbpAspNetCoreIntegratedTestBase<TStartup>
Inherited Members
AbpTestBaseWithServiceProvider.GetService<T>()
AbpTestBaseWithServiceProvider.GetRequiredService<T>()
Namespace: Volo.Abp.AspNetCore.TestBase
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
AbpTestBaseWithServiceProvider.ServiceProvider

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

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

AbpObjectExtensions.As<T>(Object)
AbpObjectExtensions.To<T>(Object)
AbpObjectExtensions.IsIn<T>(T, T[])
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.If<T>(T, Boolean, Func<T, T>)
AbpObjectExtensions.If<T>(T, Boolean, Action<T>)
LockExtensions.Locking(Object, Action)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<TResult>(Object, Func<TResult>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
Back to top Powered by Volosoft