aibdd.auto.csharp.it.handlers.command

Send JWT-authenticated HTTP write requests in C# integration tests.

1|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/zenbuapps/zenbu-powers --skill aibdd-auto-csharp-it-handlers-command
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aibdd.auto.csharp.it.handlers.command
Source: https://github.com/zenbuapps/zenbu-powers/tree/main/skills/aibdd.auto.csharp.it.handlers.command
Command: npx skills add https://github.com/zenbuapps/zenbu-powers --skill aibdd-auto-csharp-it-handlers-command

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

When writing write operation steps in Gherkin (Given completed / When executing), this guidance standardizes how to perform HTTP write actions against an API, improving repeatability and test reliability.

Core Features & Use Cases

  • Provides a pattern for sending HTTP POST/PUT/PATCH/DELETE requests from C# integration tests using HttpClient, with JWT authentication and WebApplicationFactory support.
  • Supports SpecFlow Given/When steps to create or modify server state, leveraging EF Core 8+ and PostgreSQL 16 in Testcontainers for end-to-end validation.
  • Improves test readability, maintainability, and reusability by centralizing common write-operation logic.

Quick Start

In your test, send a JWT-authenticated HTTP write request (POST/PUT/PATCH/DELETE) to the target API endpoint.

Frequently Asked Questions about aibdd.auto.csharp.it.handlers.command

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I send HTTP POST, PUT, PATCH, or DELETE requests in C# integration tests?

To send HTTP write requests in C# integration tests, use HttpClient with JWT-based authentication to perform POST, PUT, PATCH, and DELETE operations against your API endpoints. This approach standardizes write actions within SpecFlow Given and When steps to modify server state.

Can I use SpecFlow Given and When steps to create or modify server state through HTTP requests?

Yes, SpecFlow Given and When steps can execute HTTP write requests to create or modify server state. This pattern leverages WebApplicationFactory and JWT authentication to ensure end-to-end validation when setting up test preconditions or performing actions.

What's the best way to standardize HTTP write operations in SpecFlow integration testing?

The best way to standardize HTTP write operations is to centralize the request logic using HttpClient and JWT authentication within SpecFlow steps. This improves test readability, maintainability, and reusability across your .NET 8 integration test suite.

Do I need PostgreSQL and Testcontainers to run C# HTTP integration tests with EF Core?

Yes, the integration test environment requires PostgreSQL 16 and Testcontainers alongside EF Core 8+. This combination provides an isolated, end-to-end database environment for validating HTTP write operations executed through WebApplicationFactory.

How does JWT authentication work with HttpClient in .NET 8 WebApplicationFactory tests?

JWT authentication with HttpClient in .NET 8 WebApplicationFactory tests involves attaching valid JWT tokens to HTTP write requests. This ensures that POST, PUT, PATCH, and DELETE operations are authorized when interacting with the target API during integration testing.

Why should I centralize HTTP write logic in C# integration testing instead of writing custom requests per step?

Centralizing HTTP write logic improves test reliability and repeatability by standardizing how POST, PUT, PATCH, and DELETE requests are sent. It reduces duplicated code across SpecFlow steps and ensures consistent JWT authentication and API schema usage.