> ## Documentation Index
> Fetch the complete documentation index at: https://easyaf.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# AspNetCoreBreakdanceTestBase

> A base class for building unit tests for AspNetCore APIs that automatically maintains a [TestServer](https://learn.microsoft.com/dotnet/api/microsoft.aspnetc...

## Definition

**Assembly:** CloudNimble.Breakdance.AspNetCore.dll

**Namespace:** CloudNimble.Breakdance.AspNetCore

**Inheritance:** CloudNimble.Breakdance.AspNetCore.AspNetCoreBreakdanceTestBase

## Syntax

```csharp theme={"dark"}
CloudNimble.Breakdance.AspNetCore.AspNetCoreBreakdanceTestBase<TStartup>
```

## Summary

A base class for building unit tests for AspNetCore APIs that automatically maintains a [TestServer](https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.testhost.testserver) with configuration and a Dependency Injection containers for you.

## Type Parameters

* `TStartup` -

## Constructors

### <Icon icon="hammer" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> .ctor

Creates a new [AspNetCoreBreakdanceTestBase](/breakdance/api-reference/CloudNimble/Breakdance/AspNetCore/AspNetCoreBreakdanceTestBase) instance.

#### Syntax

```csharp theme={"dark"}
public AspNetCoreBreakdanceTestBase()
```

#### Remarks

The call to .Configure() with no content is required to get a minimal, empty [IWebHost](https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.hosting.iwebhost).

### <Icon icon="hammer" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> .ctor <Badge color="gray">Inherited</Badge>

<Note>Inherited from `CloudNimble.Breakdance.AspNetCore.AspNetCoreBreakdanceTestBase`</Note>

Creates a new [AspNetCoreBreakdanceTestBase](/breakdance/api-reference/CloudNimble/Breakdance/AspNetCore/AspNetCoreBreakdanceTestBase) instance.

#### Syntax

```csharp theme={"dark"}
public AspNetCoreBreakdanceTestBase()
```

#### Remarks

Uses the modern [IHostBuilder](/breakdance/api-reference/Microsoft/Extensions/Hosting/IHostBuilder) pattern for web hosting instead of the deprecated WebHostBuilder.

## Properties

### <Icon icon="tag" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> TestHostBuilder <Badge color="gray">Inherited</Badge>

<Note>Inherited from `CloudNimble.Breakdance.AspNetCore.AspNetCoreBreakdanceTestBase`</Note>

Replaces the [AspNetCoreBreakdanceTestBase.TestHostBuilder](/breakdance/api-reference/CloudNimble/Breakdance/AspNetCore/AspNetCoreBreakdanceTestBase#testhostbuilder) from the [BreakdanceTestBase](/breakdance/api-reference/CloudNimble/Breakdance/Assemblies/BreakdanceTestBase) with an [IHostBuilder](/breakdance/api-reference/Microsoft/Extensions/Hosting/IHostBuilder) implementation configured for web hosting.

#### Syntax

```csharp theme={"dark"}
public Microsoft.Extensions.Hosting.IHostBuilder TestHostBuilder { get; internal set; }
```

#### Property Value

Type: `Microsoft.Extensions.Hosting.IHostBuilder`

### <Icon icon="tag" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> TestServer <Badge color="gray">Inherited</Badge>

<Note>Inherited from `CloudNimble.Breakdance.AspNetCore.AspNetCoreBreakdanceTestBase`</Note>

The [AspNetCoreBreakdanceTestBase.TestServer](/breakdance/api-reference/CloudNimble/Breakdance/AspNetCore/AspNetCoreBreakdanceTestBase#testserver) for handling requests.

#### Syntax

```csharp theme={"dark"}
public Microsoft.AspNetCore.TestHost.TestServer TestServer { get; internal set; }
```

#### Property Value

Type: `Microsoft.AspNetCore.TestHost.TestServer`

## Methods

### <Icon icon="function" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> AddApis <Badge color="gray">Inherited</Badge>

<Note>Inherited from `CloudNimble.Breakdance.AspNetCore.AspNetCoreBreakdanceTestBase`</Note>

Adds Controller services to the [AspNetCoreBreakdanceTestBase.TestHostBuilder](/breakdance/api-reference/CloudNimble/Breakdance/AspNetCore/AspNetCoreBreakdanceTestBase#testhostbuilder).

#### Syntax

```csharp theme={"dark"}
public void AddApis(System.Action<Microsoft.AspNetCore.Mvc.MvcOptions> options = null, System.Action<Microsoft.AspNetCore.Builder.IApplicationBuilder> app = null)
```

#### Parameters

| Name      | Type                                                              | Description |
| --------- | ----------------------------------------------------------------- | ----------- |
| `options` | `System.Action<Microsoft.AspNetCore.Mvc.MvcOptions>`              | -           |
| `app`     | `System.Action<Microsoft.AspNetCore.Builder.IApplicationBuilder>` | -           |

#### Remarks

Calls AddControllers() on the [IServiceCollection](https://learn.microsoft.com/dotnet/api/microsoft.extensions.dependencyinjection.iservicecollection) which does the following, according to the Microsoft docs:
combines the effects of Microsoft.Extensions.DependencyInjection.MvcCoreServiceCollectionExtensions.AddMvcCore(Microsoft.Extensions.DependencyInjection.IServiceCollection),
Microsoft.Extensions.DependencyInjection.MvcApiExplorerMvcCoreBuilderExtensions.AddApiExplorer(Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder),
Microsoft.Extensions.DependencyInjection.MvcCoreMvcCoreBuilderExtensions.AddAuthorization(Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder),
Microsoft.Extensions.DependencyInjection.MvcCorsMvcCoreBuilderExtensions.AddCors(Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder),
Microsoft.Extensions.DependencyInjection.MvcDataAnnotationsMvcCoreBuilderExtensions.AddDataAnnotations(Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder),
and Microsoft.Extensions.DependencyInjection.MvcCoreMvcCoreBuilderExtensions.AddFormatterMappings(Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder).

### <Icon icon="function" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> AddMinimalMvc <Badge color="gray">Inherited</Badge>

<Note>Inherited from `CloudNimble.Breakdance.AspNetCore.AspNetCoreBreakdanceTestBase`</Note>

Adds minimal MVC services to the [AspNetCoreBreakdanceTestBase.TestHostBuilder](/breakdance/api-reference/CloudNimble/Breakdance/AspNetCore/AspNetCoreBreakdanceTestBase#testhostbuilder).

#### Syntax

```csharp theme={"dark"}
public void AddMinimalMvc(System.Action<Microsoft.AspNetCore.Mvc.MvcOptions> options = null, System.Action<Microsoft.AspNetCore.Builder.IApplicationBuilder> app = null)
```

#### Parameters

| Name      | Type                                                              | Description |
| --------- | ----------------------------------------------------------------- | ----------- |
| `options` | `System.Action<Microsoft.AspNetCore.Mvc.MvcOptions>`              | -           |
| `app`     | `System.Action<Microsoft.AspNetCore.Builder.IApplicationBuilder>` | -           |

#### Remarks

Calls AddMvcCore() on the [IServiceCollection](https://learn.microsoft.com/dotnet/api/microsoft.extensions.dependencyinjection.iservicecollection) which does the following, according to the Microsoft docs:
will register the minimum set of services necessary to route requests and invoke
controllers. It is not expected that any application will satisfy its requirements
with just a call to Microsoft.Extensions.DependencyInjection.MvcCoreServiceCollectionExtensions.AddMvcCore(Microsoft.Extensions.DependencyInjection.IServiceCollection).
Additional configuration using the Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder
will be required.

### <Icon icon="function" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> AddRazorPages <Badge color="gray">Inherited</Badge>

<Note>Inherited from `CloudNimble.Breakdance.AspNetCore.AspNetCoreBreakdanceTestBase`</Note>

Adds support for Controllers and Razor views to the [AspNetCoreBreakdanceTestBase.TestHostBuilder](/breakdance/api-reference/CloudNimble/Breakdance/AspNetCore/AspNetCoreBreakdanceTestBase#testhostbuilder).

#### Syntax

```csharp theme={"dark"}
public void AddRazorPages(System.Action<Microsoft.AspNetCore.Mvc.RazorPages.RazorPagesOptions> options = null, System.Action<Microsoft.AspNetCore.Builder.IApplicationBuilder> app = null)
```

#### Parameters

| Name      | Type                                                                   | Description |
| --------- | ---------------------------------------------------------------------- | ----------- |
| `options` | `System.Action<Microsoft.AspNetCore.Mvc.RazorPages.RazorPagesOptions>` | -           |
| `app`     | `System.Action<Microsoft.AspNetCore.Builder.IApplicationBuilder>`      | -           |

#### Remarks

Calls AddRazorPages() on the [IServiceCollection](https://learn.microsoft.com/dotnet/api/microsoft.extensions.dependencyinjection.iservicecollection) which does the following, according to the Microsoft docs:
combines the effects of Microsoft.Extensions.DependencyInjection.MvcCoreServiceCollectionExtensions.AddMvcCore(Microsoft.Extensions.DependencyInjection.IServiceCollection),
Microsoft.Extensions.DependencyInjection.MvcCoreMvcCoreBuilderExtensions.AddAuthorization(Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder),
Microsoft.Extensions.DependencyInjection.MvcDataAnnotationsMvcCoreBuilderExtensions.AddDataAnnotations(Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder),
Microsoft.Extensions.DependencyInjection.TagHelperServicesExtensions.AddCacheTagHelper(Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder),
and Microsoft.Extensions.DependencyInjection.MvcRazorPagesMvcCoreBuilderExtensions.AddRazorPages(Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder).

### <Icon icon="function" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> AddViews <Badge color="gray">Inherited</Badge>

<Note>Inherited from `CloudNimble.Breakdance.AspNetCore.AspNetCoreBreakdanceTestBase`</Note>

Adds support for Controllers and Razor views to the [AspNetCoreBreakdanceTestBase.TestHostBuilder](/breakdance/api-reference/CloudNimble/Breakdance/AspNetCore/AspNetCoreBreakdanceTestBase#testhostbuilder).

#### Syntax

```csharp theme={"dark"}
public void AddViews(System.Action<Microsoft.AspNetCore.Mvc.MvcOptions> options = null, System.Action<Microsoft.AspNetCore.Builder.IApplicationBuilder> app = null)
```

#### Parameters

| Name      | Type                                                              | Description |
| --------- | ----------------------------------------------------------------- | ----------- |
| `options` | `System.Action<Microsoft.AspNetCore.Mvc.MvcOptions>`              | -           |
| `app`     | `System.Action<Microsoft.AspNetCore.Builder.IApplicationBuilder>` | -           |

#### Remarks

Calls AddControllersWithViews() on the [IServiceCollection](https://learn.microsoft.com/dotnet/api/microsoft.extensions.dependencyinjection.iservicecollection) which does the following, according to the Microsoft docs:
combines the effects of Microsoft.Extensions.DependencyInjection.MvcCoreServiceCollectionExtensions.AddMvcCore(Microsoft.Extensions.DependencyInjection.IServiceCollection),
Microsoft.Extensions.DependencyInjection.MvcApiExplorerMvcCoreBuilderExtensions.AddApiExplorer(Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder),
Microsoft.Extensions.DependencyInjection.MvcCoreMvcCoreBuilderExtensions.AddAuthorization(Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder),
Microsoft.Extensions.DependencyInjection.MvcCorsMvcCoreBuilderExtensions.AddCors(Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder),
Microsoft.Extensions.DependencyInjection.MvcDataAnnotationsMvcCoreBuilderExtensions.AddDataAnnotations(Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder),
Microsoft.Extensions.DependencyInjection.MvcCoreMvcCoreBuilderExtensions.AddFormatterMappings(Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder),
Microsoft.Extensions.DependencyInjection.TagHelperServicesExtensions.AddCacheTagHelper(Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder),
Microsoft.Extensions.DependencyInjection.MvcViewFeaturesMvcCoreBuilderExtensions.AddViews(Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder),
and Microsoft.Extensions.DependencyInjection.MvcRazorMvcCoreBuilderExtensions.AddRazorViewEngine(Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder).

### <Icon icon="code-merge" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> AssemblySetup <Badge color="blue">Override</Badge>

<Note>Inherited from `CloudNimble.Breakdance.AspNetCore.AspNetCoreBreakdanceTestBase`</Note>

Method used by test assemblies to setup the environment.

#### Syntax

```csharp theme={"dark"}
public override void AssemblySetup()
```

#### Remarks

With MSTest, use \[AssemblyInitialize].
With NUnit, use \[OneTimeSetup].
With xUnit, good luck: [https://xunit.net/docs/shared-context](https://xunit.net/docs/shared-context)

### <Icon icon="code-merge" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> AssemblySetupAsync <Badge color="blue">Override</Badge>

<Note>Inherited from `CloudNimble.Breakdance.AspNetCore.AspNetCoreBreakdanceTestBase`</Note>

Method used by test assemblies to setup the environment asynchronously.

#### Syntax

```csharp theme={"dark"}
public override System.Threading.Tasks.Task AssemblySetupAsync()
```

#### Returns

Type: `System.Threading.Tasks.Task`

#### Remarks

With MSTest, use \[AssemblyInitialize].
With NUnit, use \[OneTimeSetUp].
With xUnit, good luck: [https://xunit.net/docs/shared-context](https://xunit.net/docs/shared-context)

### <Icon icon="function" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> EnsureTestServer <Badge color="gray">Inherited</Badge>

<Note>Inherited from `CloudNimble.Breakdance.AspNetCore.AspNetCoreBreakdanceTestBase`</Note>

Ensures that the [AspNetCoreBreakdanceTestBase.TestServer](/breakdance/api-reference/CloudNimble/Breakdance/AspNetCore/AspNetCoreBreakdanceTestBase#testserver) has been constructed.

#### Syntax

```csharp theme={"dark"}
internal void EnsureTestServer()
```

#### Remarks

Builds the host using [IHostBuilder](/breakdance/api-reference/Microsoft/Extensions/Hosting/IHostBuilder), starts it, and retrieves the [AspNetCoreBreakdanceTestBase.TestServer](/breakdance/api-reference/CloudNimble/Breakdance/AspNetCore/AspNetCoreBreakdanceTestBase#testserver) from the host services.

### <Icon icon="function" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> EnsureTestServerAsync <Badge color="gray">Inherited</Badge>

<Note>Inherited from `CloudNimble.Breakdance.AspNetCore.AspNetCoreBreakdanceTestBase`</Note>

Ensures that the [AspNetCoreBreakdanceTestBase.TestServer](/breakdance/api-reference/CloudNimble/Breakdance/AspNetCore/AspNetCoreBreakdanceTestBase#testserver) has been constructed asynchronously.

#### Syntax

```csharp theme={"dark"}
internal System.Threading.Tasks.Task EnsureTestServerAsync()
```

#### Returns

Type: `System.Threading.Tasks.Task`

#### Remarks

Builds the host using [IHostBuilder](/breakdance/api-reference/Microsoft/Extensions/Hosting/IHostBuilder), starts it, and retrieves the [AspNetCoreBreakdanceTestBase.TestServer](/breakdance/api-reference/CloudNimble/Breakdance/AspNetCore/AspNetCoreBreakdanceTestBase#testserver) from the host services.

### <Icon icon="function" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> GetHttpClient <Badge color="gray">Inherited</Badge>

<Note>Inherited from `CloudNimble.Breakdance.AspNetCore.AspNetCoreBreakdanceTestBase`</Note>

Retrieves an [HttpClient](/breakdance/api-reference/System/Net/Http/HttpClient) instance from the [AspNetCoreBreakdanceTestBase.TestServer](/breakdance/api-reference/CloudNimble/Breakdance/AspNetCore/AspNetCoreBreakdanceTestBase#testserver) and properly configures the [BaseAddress](https://learn.microsoft.com/dotnet/api/system.net.http.httpclient.baseaddress).

#### Syntax

```csharp theme={"dark"}
public System.Net.Http.HttpClient GetHttpClient(string routePrefix = "api/tests/")
```

#### Parameters

| Name          | Type     | Description                                                                                                                                                                                                                                                                    |
| ------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `routePrefix` | `string` | The string to append to the [BaseAddress](https://learn.microsoft.com/dotnet/api/system.net.http.httpclient.baseaddress) for all requests. Defaults to [WebApiConstants.RoutePrefix](/breakdance/api-reference/CloudNimble/Breakdance/AspNetCore/WebApiConstants#routeprefix). |

#### Returns

Type: `System.Net.Http.HttpClient`
A properly configured [HttpClient](/breakdance/api-reference/System/Net/Http/HttpClient)instance from the [AspNetCoreBreakdanceTestBase.TestServer](/breakdance/api-reference/CloudNimble/Breakdance/AspNetCore/AspNetCoreBreakdanceTestBase#testserver).

### <Icon icon="function" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> GetHttpClient <Badge color="gray">Inherited</Badge>

<Note>Inherited from `CloudNimble.Breakdance.AspNetCore.AspNetCoreBreakdanceTestBase`</Note>

Retrieves an [HttpClient](/breakdance/api-reference/System/Net/Http/HttpClient) instance from the [AspNetCoreBreakdanceTestBase.TestServer](/breakdance/api-reference/CloudNimble/Breakdance/AspNetCore/AspNetCoreBreakdanceTestBase#testserver) and properly configures the [BaseAddress](https://learn.microsoft.com/dotnet/api/system.net.http.httpclient.baseaddress).

#### Syntax

```csharp theme={"dark"}
public System.Net.Http.HttpClient GetHttpClient(System.Net.Http.Headers.AuthenticationHeaderValue authHeader, string routePrefix = "api/tests/")
```

#### Parameters

| Name          | Type                                                | Description                                                                                                                                                                                                                                                                    |
| ------------- | --------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `authHeader`  | `System.Net.Http.Headers.AuthenticationHeaderValue` | -                                                                                                                                                                                                                                                                              |
| `routePrefix` | `string`                                            | The string to append to the [BaseAddress](https://learn.microsoft.com/dotnet/api/system.net.http.httpclient.baseaddress) for all requests. Defaults to [WebApiConstants.RoutePrefix](/breakdance/api-reference/CloudNimble/Breakdance/AspNetCore/WebApiConstants#routeprefix). |

#### Returns

Type: `System.Net.Http.HttpClient`
A properly configured [HttpClient](/breakdance/api-reference/System/Net/Http/HttpClient)instance from the [AspNetCoreBreakdanceTestBase.TestServer](/breakdance/api-reference/CloudNimble/Breakdance/AspNetCore/AspNetCoreBreakdanceTestBase#testserver).

### <Icon icon="code-merge" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> GetKeyedService <Badge color="blue">Override</Badge>

<Note>Inherited from `CloudNimble.Breakdance.AspNetCore.AspNetCoreBreakdanceTestBase`</Note>

Get service of type *T* from the System.IServiceProvider.

#### Syntax

```csharp theme={"dark"}
public override T GetKeyedService<T>(string key) where T : class
```

#### Parameters

| Name  | Type     | Description                    |
| ----- | -------- | ------------------------------ |
| `key` | `string` | The key of the service to get. |

#### Returns

Type: `T`
A service object of type *T*.

#### Type Parameters

* `T` - The type of service object to get.

### <Icon icon="code-merge" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> GetKeyedServices <Badge color="blue">Override</Badge>

<Note>Inherited from `CloudNimble.Breakdance.AspNetCore.AspNetCoreBreakdanceTestBase`</Note>

Get services of type *T* from the System.IServiceProvider.

#### Syntax

```csharp theme={"dark"}
public override System.Collections.Generic.IEnumerable<T> GetKeyedServices<T>(string key) where T : class
```

#### Parameters

| Name  | Type     | Description |
| ----- | -------- | ----------- |
| `key` | `string` | The         |

#### Returns

Type: `System.Collections.Generic.IEnumerable<T>`
An [IEnumerable\`1](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1) of type *T*.

#### Type Parameters

* `T` - The type of service object to get.

### <Icon icon="code-merge" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> GetService <Badge color="blue">Override</Badge>

<Note>Inherited from `CloudNimble.Breakdance.AspNetCore.AspNetCoreBreakdanceTestBase`</Note>

Get service of type *T* from the System.IServiceProvider.

#### Syntax

```csharp theme={"dark"}
public override T GetService<T>() where T : class
```

#### Returns

Type: `T`
A service object of type *T*.

#### Type Parameters

* `T` - The type of service object to get.

### <Icon icon="code-merge" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> GetServices <Badge color="blue">Override</Badge>

<Note>Inherited from `CloudNimble.Breakdance.AspNetCore.AspNetCoreBreakdanceTestBase`</Note>

Get an enumeration of services of type *T* from the System.IServiceProvider.

#### Syntax

```csharp theme={"dark"}
public override System.Collections.Generic.IEnumerable<T> GetServices<T>() where T : class
```

#### Returns

Type: `System.Collections.Generic.IEnumerable<T>`
An enumeration of services of type *T*.

#### Type Parameters

* `T` - The type of service object to get.

### <Icon icon="code-merge" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> TestSetup <Badge color="blue">Override</Badge>

<Note>Inherited from `CloudNimble.Breakdance.AspNetCore.AspNetCoreBreakdanceTestBase`</Note>

Method used by test classes to setup the environment.

#### Syntax

```csharp theme={"dark"}
public override void TestSetup()
```

#### Remarks

With MSTest, use \[TestInitialize].
With NUnit, use \[Setup].
With xUnit, good luck: [https://xunit.net/docs/shared-context](https://xunit.net/docs/shared-context)

### <Icon icon="code-merge" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> TestSetupAsync <Badge color="blue">Override</Badge>

<Note>Inherited from `CloudNimble.Breakdance.AspNetCore.AspNetCoreBreakdanceTestBase`</Note>

Method used by test classes to setup the environment asynchronously.

#### Syntax

```csharp theme={"dark"}
public override System.Threading.Tasks.Task TestSetupAsync()
```

#### Returns

Type: `System.Threading.Tasks.Task`

#### Remarks

With MSTest, use \[TestInitialize].
With NUnit, use \[SetUp].
With xUnit, good luck: [https://xunit.net/docs/shared-context](https://xunit.net/docs/shared-context)

### <Icon icon="code-merge" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> TestTearDown <Badge color="blue">Override</Badge>

<Note>Inherited from `CloudNimble.Breakdance.AspNetCore.AspNetCoreBreakdanceTestBase`</Note>

Method used by test classes to clean up the environment.

#### Syntax

```csharp theme={"dark"}
public override void TestTearDown()
```

#### Remarks

With MSTest, use \[TestCleanup].
With NUnit, use \[TearDown].
With xUnit, good luck: [https://xunit.net/docs/shared-context](https://xunit.net/docs/shared-context)
