Class AbpAspNetCoreTestBase<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()
Namespace: Volo.Abp.AspNetCore
Assembly: Volo.Abp.AspNetCore.Tests.dll
Syntax
public abstract class AbpAspNetCoreTestBase<TStartup> : AbpAspNetCoreIntegratedTestBase<TStartup>, IDisposable where TStartup : class
Type Parameters
| Name | Description |
|---|---|
| TStartup |
Constructors
AbpAspNetCoreTestBase()
Declaration
protected AbpAspNetCoreTestBase()
Methods
GetResponseAsObjectAsync<T>(string, HttpStatusCode)
Declaration
protected virtual Task<T> GetResponseAsObjectAsync<T>(string url, HttpStatusCode expectedStatusCode = HttpStatusCode.OK)
Parameters
| Type | Name | Description |
|---|---|---|
| string | url | |
| System.Net.HttpStatusCode | expectedStatusCode |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<TResult><T> |
Type Parameters
| Name | Description |
|---|---|
| T |
GetResponseAsStringAsync(string, HttpStatusCode)
Declaration
protected virtual Task<string> GetResponseAsStringAsync(string url, HttpStatusCode expectedStatusCode = HttpStatusCode.OK)
Parameters
| Type | Name | Description |
|---|---|---|
| string | url | |
| System.Net.HttpStatusCode | expectedStatusCode |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<TResult><string> |
GetResponseAsync(string, HttpStatusCode, bool)
Declaration
protected virtual Task<HttpResponseMessage> GetResponseAsync(string url, HttpStatusCode expectedStatusCode = HttpStatusCode.OK, bool xmlHttpRequest = false)
Parameters
| Type | Name | Description |
|---|---|---|
| string | url | |
| System.Net.HttpStatusCode | expectedStatusCode | |
| bool | xmlHttpRequest |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<TResult><System.Net.Http.HttpResponseMessage> |
Implements
System.IDisposable