Definition
Assembly: CloudNimble.Breakdance.AspNetCore.dll Namespace: CloudNimble.Breakdance.AspNetCore Inheritance: System.ObjectSyntax
Summary
Helper methods for creating testable resources for AspNetCore.Methods
GetTestableHttpServer
Gets a new TestServer with default services.Syntax
Returns
Type:Microsoft.AspNetCore.TestHost.TestServer
GetTestableHttpServer
Gets a new TestServer with the provided service registration.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
registration | System.Action<Microsoft.Extensions.DependencyInjection.IServiceCollection> | Delegate for customizing the IServiceCollection of services available to the TestServer. |
Returns
Type:Microsoft.AspNetCore.TestHost.TestServer
GetTestableHttpServer
Gets a new TestServer with the provided service registration and application builder.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
registration | System.Action<Microsoft.Extensions.DependencyInjection.IServiceCollection> | Delegate for customizing the IServiceCollection of services available to the TestServer. |
builder | System.Action<Microsoft.AspNetCore.Builder.IApplicationBuilder> | Delegate for customizing the IApplicationBuilder</see> used to configure the TestServer. |
Returns
Type:Microsoft.AspNetCore.TestHost.TestServer
GetTestableHttpServer
Gets a new TestServer with the provided service registration, application builder and configuration builder.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
registration | System.Action<Microsoft.Extensions.DependencyInjection.IServiceCollection> | Delegate for customizing the IServiceCollection of services available to the TestServer. |
builder | System.Action<Microsoft.AspNetCore.Builder.IApplicationBuilder> | Delegate for customizing the IApplicationBuilder</see> used to configure the TestServer. |
configuration | System.Action<Microsoft.Extensions.Configuration.IConfigurationBuilder> | Delegate for providing an IConfigurationBuilder used to generate an IConfiguration for the TestServer. |
Returns
Type:Microsoft.AspNetCore.TestHost.TestServer
GetTestableHttpServerAsync
Gets a new TestServer with default services asynchronously.Syntax
Returns
Type:System.Threading.Tasks.Task<Microsoft.AspNetCore.TestHost.TestServer>
GetTestableHttpServerAsync
Gets a new TestServer with the provided service registration asynchronously.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
registration | System.Action<Microsoft.Extensions.DependencyInjection.IServiceCollection> | Delegate for customizing the IServiceCollection of services available to the TestServer. |
Returns
Type:System.Threading.Tasks.Task<Microsoft.AspNetCore.TestHost.TestServer>
GetTestableHttpServerAsync
Gets a new TestServer with the provided service registration and application builder asynchronously.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
registration | System.Action<Microsoft.Extensions.DependencyInjection.IServiceCollection> | Delegate for customizing the IServiceCollection of services available to the TestServer. |
builder | System.Action<Microsoft.AspNetCore.Builder.IApplicationBuilder> | Delegate for customizing the IApplicationBuilder</see> used to configure the TestServer. |
Returns
Type:System.Threading.Tasks.Task<Microsoft.AspNetCore.TestHost.TestServer>
GetTestableHttpServerAsync
Gets a new TestServer with the provided service registration, application builder and configuration builder asynchronously.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
registration | System.Action<Microsoft.Extensions.DependencyInjection.IServiceCollection> | Delegate for customizing the IServiceCollection of services available to the TestServer. |
builder | System.Action<Microsoft.AspNetCore.Builder.IApplicationBuilder> | Delegate for customizing the IApplicationBuilder</see> used to configure the TestServer. |
configuration | System.Action<Microsoft.Extensions.Configuration.IConfigurationBuilder> | Delegate for providing an IConfigurationBuilder used to generate an IConfiguration for the TestServer. |
Returns
Type:System.Threading.Tasks.Task<Microsoft.AspNetCore.TestHost.TestServer>