# DistributedApplicationTestingBuilder

- Kind: `class`
- Package: [Aspire.Hosting.Testing](/reference/api/csharp/aspire.hosting.testing.md)
- Version: `13.3.0`
- Namespace: `Aspire.Hosting.Testing`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Testing/DistributedApplicationTestingBuilder.cs)

Methods for creating distributed application instances for testing purposes.

## Definition

```csharp
namespace Aspire.Hosting.Testing;

public static class DistributedApplicationTestingBuilder
{
    // ...
}
```

## Methods

- [Create(string[])](/reference/api/csharp/aspire.hosting.testing/distributedapplicationtestingbuilder/methods.md#create-string) : [IDistributedApplicationTestingBuilder](/reference/api/csharp/aspire.hosting.testing/idistributedapplicationtestingbuilder.md) `static` -- Creates a new instance of [IDistributedApplicationTestingBuilder](/reference/api/csharp/aspire.hosting.testing/idistributedapplicationtestingbuilder.md).
- [Create(string[], Action<DistributedApplicationOptions, HostApplicationBuilderSettings>)](/reference/api/csharp/aspire.hosting.testing/distributedapplicationtestingbuilder/methods.md#create-string-action-distributedapplicationoptions-hostapplicationbuildersettings) : [IDistributedApplicationTestingBuilder](/reference/api/csharp/aspire.hosting.testing/idistributedapplicationtestingbuilder.md) `static` -- Creates a new instance of [IDistributedApplicationTestingBuilder](/reference/api/csharp/aspire.hosting.testing/idistributedapplicationtestingbuilder.md).
- [CreateAsync(CancellationToken)](/reference/api/csharp/aspire.hosting.testing/distributedapplicationtestingbuilder/methods.md#createasync-cancellationtoken) : [Task<IDistributedApplicationTestingBuilder>](/reference/api/csharp/aspire.hosting.testing/idistributedapplicationtestingbuilder.md) `static` -- Creates a new instance of [IDistributedApplicationTestingBuilder](/reference/api/csharp/aspire.hosting.testing/idistributedapplicationtestingbuilder.md).
- [CreateAsync(Type, CancellationToken)](/reference/api/csharp/aspire.hosting.testing/distributedapplicationtestingbuilder/methods.md#createasync-type-cancellationtoken) : [Task<IDistributedApplicationTestingBuilder>](/reference/api/csharp/aspire.hosting.testing/idistributedapplicationtestingbuilder.md) `static` -- Creates a new instance of [IDistributedApplicationTestingBuilder](/reference/api/csharp/aspire.hosting.testing/idistributedapplicationtestingbuilder.md).
- [CreateAsync(string[], CancellationToken)](/reference/api/csharp/aspire.hosting.testing/distributedapplicationtestingbuilder/methods.md#createasync-string-cancellationtoken) : [Task<IDistributedApplicationTestingBuilder>](/reference/api/csharp/aspire.hosting.testing/idistributedapplicationtestingbuilder.md) `static` -- Creates a new instance of [IDistributedApplicationTestingBuilder](/reference/api/csharp/aspire.hosting.testing/idistributedapplicationtestingbuilder.md).
- [CreateAsync(Type, string[], CancellationToken)](/reference/api/csharp/aspire.hosting.testing/distributedapplicationtestingbuilder/methods.md#createasync-type-string-cancellationtoken) : [Task<IDistributedApplicationTestingBuilder>](/reference/api/csharp/aspire.hosting.testing/idistributedapplicationtestingbuilder.md) `static` -- Creates a new instance of [IDistributedApplicationTestingBuilder](/reference/api/csharp/aspire.hosting.testing/idistributedapplicationtestingbuilder.md).
- [CreateAsync(string[], Action<DistributedApplicationOptions, HostApplicationBuilderSettings>, CancellationToken)](/reference/api/csharp/aspire.hosting.testing/distributedapplicationtestingbuilder/methods.md#createasync-string-action-distributedapplicationoptions-hostapplicationbuildersettings-cancellationtoken) : [Task<IDistributedApplicationTestingBuilder>](/reference/api/csharp/aspire.hosting.testing/idistributedapplicationtestingbuilder.md) `static` -- Creates a new instance of [IDistributedApplicationTestingBuilder](/reference/api/csharp/aspire.hosting.testing/idistributedapplicationtestingbuilder.md).
- [CreateAsync(Type, string[], Action<DistributedApplicationOptions, HostApplicationBuilderSettings>, CancellationToken)](/reference/api/csharp/aspire.hosting.testing/distributedapplicationtestingbuilder/methods.md#createasync-type-string-action-distributedapplicationoptions-hostapplicationbuildersettings-cancellationtoken) : [Task<IDistributedApplicationTestingBuilder>](/reference/api/csharp/aspire.hosting.testing/idistributedapplicationtestingbuilder.md) `static` -- Creates a new instance of [IDistributedApplicationTestingBuilder](/reference/api/csharp/aspire.hosting.testing/idistributedapplicationtestingbuilder.md).
