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

# DotHttpSourceGenerator

> Source generator that creates test classes from .http files.

## Definition

**Assembly:** CloudNimble.Breakdance.DotHttp.dll

**Namespace:** CloudNimble.Breakdance.DotHttp.Generator

**Inheritance:** System.Object

## Syntax

```csharp theme={"dark"}
CloudNimble.Breakdance.DotHttp.Generator.DotHttpSourceGenerator
```

## Summary

Source generator that creates test classes from .http files.

## Remarks

Supports MSTest and XUnit frameworks via the TestFramework configuration property.
Generated classes are partial to allow custom setup and assertion overrides.

## Examples

```csharp theme={"dark"}
// Given an api.http file with:
// @baseUrl = https://api.example.com
//
// ### Get all users
// # @name GetAllUsers
// GET {{baseUrl}}/users
// Accept: application/json
//
// The generator produces ApiTests.g.cs with:
// [TestClass]
// public partial class ApiTests : DotHttpTestBase
// {
//     [TestMethod]
//     public async Task GetAllUsers() { ... }
// }
```

## Constructors

### &#x20;.ctor

#### Syntax

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

### &#x20;.ctor Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

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

## Methods

### &#x20;Equals Inherited Virtual

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public virtual bool Equals(object obj)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `obj` | `object?` | - |

#### Returns

Type: `bool`

### &#x20;Equals Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public static bool Equals(object objA, object objB)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `objA` | `object?` | - |
| `objB` | `object?` | - |

#### Returns

Type: `bool`

### &#x20;GetHashCode Inherited Virtual

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public virtual int GetHashCode()
```

#### Returns

Type: `int`

### &#x20;GetType Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public System.Type GetType()
```

#### Returns

Type: `System.Type`

### &#x20;Initialize

#### Syntax

```csharp theme={"dark"}
public void Initialize(Microsoft.CodeAnalysis.IncrementalGeneratorInitializationContext context)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `context` | `Microsoft.CodeAnalysis.IncrementalGeneratorInitializationContext` | - |

### &#x20;MemberwiseClone Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
protected internal object MemberwiseClone()
```

#### Returns

Type: `object`

### &#x20;ReferenceEquals Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public static bool ReferenceEquals(object objA, object objB)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `objA` | `object?` | - |
| `objB` | `object?` | - |

#### Returns

Type: `bool`

### &#x20;ToString Inherited Virtual

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public virtual string ToString()
```

#### Returns

Type: `string?`

## Related APIs

* Microsoft.CodeAnalysis.IIncrementalGenerator


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.