Documentation Index Fetch the complete documentation index at: https://easyaf.dev/llms.txt
Use this file to discover all available pages before exploring further.
Definition
Assembly: CloudNimble.Breakdance.AspNetCore.dll
Namespace: CloudNimble.Breakdance.AspNetCore
Inheritance: System.Object
Syntax
CloudNimble . Breakdance . AspNetCore . AspNetCoreTestHelpers
Summary
Helper methods for creating testable resources for AspNetCore.
Methods
GetTestableHttpServer
Gets a new TestServer with default services.
Syntax
public static Microsoft . AspNetCore . TestHost . TestServer GetTestableHttpServer ()
Returns
Type: Microsoft.AspNetCore.TestHost.TestServer
GetTestableHttpServer
Gets a new TestServer with the provided service registration.
Syntax
public static Microsoft . AspNetCore . TestHost . TestServer GetTestableHttpServer ( System . Action < Microsoft . Extensions . DependencyInjection . IServiceCollection > registration )
Parameters
Name Type Description registrationSystem.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
public static Microsoft . AspNetCore . TestHost . TestServer GetTestableHttpServer ( System . Action < Microsoft . Extensions . DependencyInjection . IServiceCollection > registration , System . Action < Microsoft . AspNetCore . Builder . IApplicationBuilder > builder )
Parameters
Name Type Description registrationSystem.Action<Microsoft.Extensions.DependencyInjection.IServiceCollection>Delegate for customizing the IServiceCollection of services available to the TestServer . builderSystem.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
public static Microsoft . AspNetCore . TestHost . TestServer GetTestableHttpServer ( System . Action < Microsoft . Extensions . DependencyInjection . IServiceCollection > registration , System . Action < Microsoft . AspNetCore . Builder . IApplicationBuilder > builder , System . Action < Microsoft . Extensions . Configuration . IConfigurationBuilder > configuration )
Parameters
Name Type Description registrationSystem.Action<Microsoft.Extensions.DependencyInjection.IServiceCollection>Delegate for customizing the IServiceCollection of services available to the TestServer . builderSystem.Action<Microsoft.AspNetCore.Builder.IApplicationBuilder>Delegate for customizing the IApplicationBuilder </see> used to configure the TestServer . configurationSystem.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
public static System . Threading . Tasks . Task < Microsoft . AspNetCore . TestHost . TestServer > GetTestableHttpServerAsync ()
Returns
Type: System.Threading.Tasks.Task<Microsoft.AspNetCore.TestHost.TestServer>
GetTestableHttpServerAsync
Gets a new TestServer with the provided service registration asynchronously.
Syntax
public static System . Threading . Tasks . Task < Microsoft . AspNetCore . TestHost . TestServer > GetTestableHttpServerAsync ( System . Action < Microsoft . Extensions . DependencyInjection . IServiceCollection > registration )
Parameters
Name Type Description registrationSystem.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
public static System . Threading . Tasks . Task < Microsoft . AspNetCore . TestHost . TestServer > GetTestableHttpServerAsync ( System . Action < Microsoft . Extensions . DependencyInjection . IServiceCollection > registration , System . Action < Microsoft . AspNetCore . Builder . IApplicationBuilder > builder )
Parameters
Name Type Description registrationSystem.Action<Microsoft.Extensions.DependencyInjection.IServiceCollection>Delegate for customizing the IServiceCollection of services available to the TestServer . builderSystem.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
public static System . Threading . Tasks . Task < Microsoft . AspNetCore . TestHost . TestServer > GetTestableHttpServerAsync ( System . Action < Microsoft . Extensions . DependencyInjection . IServiceCollection > registration , System . Action < Microsoft . AspNetCore . Builder . IApplicationBuilder > builder , System . Action < Microsoft . Extensions . Configuration . IConfigurationBuilder > configuration )
Parameters
Name Type Description registrationSystem.Action<Microsoft.Extensions.DependencyInjection.IServiceCollection>Delegate for customizing the IServiceCollection of services available to the TestServer . builderSystem.Action<Microsoft.AspNetCore.Builder.IApplicationBuilder>Delegate for customizing the IApplicationBuilder </see> used to configure the TestServer . configurationSystem.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>